Created
October 26, 2023 13:00
-
-
Save bartekpacia/a911ee223274049ae9aa47fbcd15e330 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: Scaffold( | |
body: Row( | |
children: [ | |
Flexible( | |
child: Container( | |
color: Colors.blue, | |
child: Icon(Icons.search), | |
), | |
), | |
Expanded( | |
child: Container( | |
color: Colors.red, | |
child: Text('Lean'), | |
), | |
), | |
Expanded( | |
child: Container( | |
color: Colors.red, | |
child: Text('Code'), | |
), | |
), | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment