Home > Blockchain >  textfield keep messing around
textfield keep messing around

Time:04-06

I am new to flutter. I want to achieve like this. enter image description here but my visual studio code keep saying an errorenter image description here

CodePudding user response:

Change Theme According to your requirements

Scaffold(
              appBar: AppBar(
                title: Text("Login Screen App"),
              ),
              body: Column(
                children: [
                  Text("Code Playon"),
                  
                  TextFormField(
                    decoration: InputDecoration(
                      hintText: "User Name"
                    ),
                  )
                ],
              ),
            );

CodePudding user response:

Try below code, refer image

CodePudding user response:

Check that you have a
MaterialApp widget
at the root of your widget's tree, and a
Scaffold widget
encapsulating your Search widget and you should be good to go!

  • Related