Skip to content

Instantly share code, notes, and snippets.

@amirulabu
Last active June 10, 2021 03:59
Show Gist options
  • Save amirulabu/bda85e4ebee15ef0a76fdb351284670a to your computer and use it in GitHub Desktop.
Save amirulabu/bda85e4ebee15ef0a76fdb351284670a to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
body: Center(
child: MyWidget(),
),
),
);
}
}
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SizedBox(
height: 200,
child: Row(
children: [
Expanded(
child: Container(
margin: EdgeInsets.all(18.0),
color: Colors.red,
),
),
Expanded(
child: Container(
margin: EdgeInsets.all(18.0),
color: Colors.blue,
),
),
Expanded(
child: Container(
margin: EdgeInsets.all(18.0),
color: Colors.yellow,
),
),
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment