Skip to content

Instantly share code, notes, and snippets.

@aneury1
Created October 29, 2019 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aneury1/733948692306af5ff657a208d2b6ad7e to your computer and use it in GitHub Desktop.
Save aneury1/733948692306af5ff657a208d2b6ad7e to your computer and use it in GitHub Desktop.
getRow(final context,{text}){
return
Container
(
decoration: BoxDecoration(border: Border.all(color: Colors.black45)),
padding: EdgeInsets.symmetric(horizontal: 8.0),
height: 70.0,
/// color: Colors.white10,
child:
Row
(
children: <Widget>
[
IconButton(icon:Icon(Icons.photo,),iconSize: 25.0,color:Theme.of(context).primaryColor, onPressed: (){},),
Expanded(child:TextField(textCapitalization: TextCapitalization.sentences,onChanged: (value){print('this->$value');},decoration: InputDecoration.collapsed( hintText: (text==null?"type text":text)),)),
IconButton(icon:Icon(Icons.send,),iconSize: 25.0,color:Theme.of(context).primaryColor, onPressed: (){},),
],
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment