Need a help in flutter [closed]

i am trying to add a textbox and it’s not showing up. Here is my code, please take a look and let me know what is wrong with this code

 return Scaffold(
      appBar: AppBar(
        backgroundColor: Colors.transparent,
        elevation: 0,
        actions: [
          IconButton(onPressed: (){},
              icon: Icon(Icons.settings_outlined, color: Colors.black,))
        ],),
      body: Stack(
        children: [
          Container(
            decoration: BoxDecoration(color: Colors.grey),
            padding: EdgeInsets.all(20),
            child: Row(
              children: [
                Text('Browse', style: TextStyle(fontSize: 28, fontWeight: FontWeight.w700, fontFamily: 'Lato')),
              ],
            )
          ),
          Container(
            child: Row(
              children: [
                TextField(
                  cursorColor: Colors.black,
                  style: TextStyle(
                      color: Colors.white
                  ),
                  decoration: InputDecoration(
                    filled: true,
                    fillColor: Colors.blueAccent,
                    border: OutlineInputBorder(
                        borderSide: BorderSide.none,
                        borderRadius: BorderRadius.circular(50)
                    ),
                  ),
                )
              ],
            ),
          )
        ],
      ),
    );

I am trying to add a text box using flutter dart language

  • change stack to column. refer to flutter docs for the various layout widgets

    – 




Leave a Comment