Skip to content

Instantly share code, notes, and snippets.

@RinatValiullov
Created December 17, 2021 20:11
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 RinatValiullov/f9971a1bc2865c1194719c8edbcd03e2 to your computer and use it in GitHub Desktop.
Save RinatValiullov/f9971a1bc2865c1194719c8edbcd03e2 to your computer and use it in GitHub Desktop.
Simple Flutter App(wip)
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(child: MyWidget()),
),
);
}
}
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
children: [
Flexible(
child: Container(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: const [
Text('Is It USA?', style: TextStyle(fontSize: 32)),
Text('California'),
],
),
),
),
Flexible(flex: 4, child: Container(color: Colors.green)),
Flexible(child: Container(color: Colors.red)),
],
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment