Answers for "flutter fix button to side of screen"

0

flutter button side by side full width

Widget myLayoutWidget() {
  return Container(
    child: Row(

      children: <Widget>[
        Expanded(
          child: RaisedButton(
            onPressed: () {},
            child: Text("Very long text button",),
          ),
        ),
        Expanded(
          child: RaisedButton(
            child: Text("Very very very very long text button"),
            color: Colors.red,
            onPressed: () {},
          ),
        )
      ],
    ),
  );
}
Posted by: Guest on November-04-2020
0

How can I display buttons side-by-side in Flutter?

Row(
          mainAxisAlignment: MainAxisAlignment.spaceAround,
          children: [
            OutlinedButton(
              onPressed: (){}, 
              child: Text('OutlinedButton'),
            ),
            ElevatedButton(
              child: Text('ElevatedButton'),
              onPressed: () {},
            ),
            TextButton(
              onPressed: (){}, 
              child: const Text('TextButton')
            ),
          ],
        ),
Posted by: Guest on August-24-2021

Code answers related to "flutter fix button to side of screen"

Code answers related to "Dart"

Browse Popular Code Answers by Language