Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bartekpacia
Created October 26, 2023 13:00
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 bartekpacia/a911ee223274049ae9aa47fbcd15e330 to your computer and use it in GitHub Desktop.
Save bartekpacia/a911ee223274049ae9aa47fbcd15e330 to your computer and use it in GitHub Desktop.
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