Created
November 21, 2021 16:33
-
-
Save JasperEssien2/6c7b230da75ebf28d9eeb079d8cf6a70 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'; | |
import 'package:render_objects/widgets/traveling_bag_render_box.dart'; | |
import 'widgets/shirt_child_render_box.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({Key? key}) : super(key: key); | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', | |
theme: ThemeData.dark(), | |
debugShowCheckedModeBanner: false, | |
home: Scaffold( | |
appBar: AppBar( | |
title: const Text("Traveling bag"), | |
), | |
body: Center( | |
child: SizedBox( | |
height: 300, | |
width: double.infinity, | |
child: TravelingBagWidget( | |
children: const [ | |
ShirtWidget( | |
color: Colors.red, | |
), | |
ShirtWidget( | |
color: Colors.pink, | |
), | |
ShirtWidget(color: Colors.blue), | |
ShirtWidget(color: Colors.amber), | |
ShirtWidget(color: Colors.brown), | |
ShirtWidget(color: Colors.cyanAccent), | |
], | |
), | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment