-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.dart
More file actions
76 lines (71 loc) · 2.09 KB
/
Copy pathmain.dart
File metadata and controls
76 lines (71 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_app_main/Companies.dart';
import 'package:flutter_app_main/Coupons.dart';
import 'package:flutter_app_main/Setting.dart';
import 'package:flutter_app_main/home1.dart';
import 'package:flutter_app_main/menu1.dart';
import 'package:flutter_app_main/onboarding1.dart';
import 'package:flutter_app_main/wallet1.dart';
void main() {
runApp(Home());
}
class CompanyBar extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
child: Row(
children: <Widget>[
CircleAvatar(
maxRadius: 30.0,
),
SizedBox(
width: 10.0,
),
Text('Montreal \n LEAGUE 1'),
IconButton(
icon: Icon(Icons.add_circle),
iconSize: 30.0,
onPressed: () {},
)
],
),
);
}
}
class Home extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
initialRoute: '/menu1',
routes: {
'/menu1': (BuildContext context) => new menu1(),
'/Coupons': (BuildContext context) => new Coupons(),
'/onboarding1': (BuildContext context) => new onboarding1(),
'/wallet1': (BuildContext context) => new wallet1(),
'/settings': (BuildContext context) => new Setting(),
'/home1': (BuildContext context) => new Home1(),
'/company1' : (BuildContext context) => new Company1(),
},
);
}
}
//class ContestClass extends StatefulWidget {
// @override
// _ContestClassState createState() => _ContestClassState();
//}
//class _ContestClassState extends State<ContestClass> {
// @override
// Widget build(BuildContext context) {
// return Container(
// child: ListView(
// scrollDirection: Axis.vertical,
// children: <Widget>[
// CompanyBar(),
// CompanyBar(),
// ],
// ),
// );
// }
//}