A flutter widget for using the specific inputfield for the specific platform
Read Time:27 Second

A flutter widget for using the specific inputfield for the specific platform

0 0

platform_text_input

Introduction

A flutter widget for using the specific inputfield for the specific platform

This project provides an amazing widget for using the specific inputfield for the specific platform

Example

class _HomeState extends State<Home> {
  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.blue,
      child: Center(
          child: MTextFormField(
          controller: _usernameController,
          focusNode: _usernameFocus,
          keyboardType: TextInputType.text,
          textInputAction: TextInputAction.next,
          inputDecorator: InputDecoration(
            labelText: "username",
            errorText: "username error",
          ),
          onChanged: (value) {
            _store.username = value;
          },
          onFieldSubmitted: (_) {
            _emailFocus.requestFocus();
      },
    );
  }
}

Getting started

Run this command for installation

flutter pub add platform_text_input

Or add this dependency

dependencies:
  platform_text_input: ^0.0.1

GitHub

View Github

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Deja una respuesta

Entrada anterior A personalised Dog Wallpaper App for the Dog Lovers
Entrada siguiente Drumpads which mimic the AKAI MPC 2000xl