Advertisement
Guest User

Untitled

a guest
May 24th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.58 KB | None | 0 0
  1. class BtnTextField extends StatelessWidget {
  2.   @override
  3.   Widget build(BuildContext context) {
  4.     return FractionallySizedBox(
  5.       heightFactor: 0.3,
  6.       widthFactor: .8,
  7.       child: Row(
  8.         children: <Widget>[
  9.           Expanded(
  10.             child: RaisedButton(
  11.               onPressed: () {},
  12.               child: Text('Button with EditText'),
  13.             ),
  14.           ),
  15.           Expanded(
  16.             child: TextField(
  17.               decoration: InputDecoration(hintText: 'Hint EditText'),
  18.             ),
  19.           )
  20.         ],
  21.       ),
  22.     );
  23.   }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement