-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathhomePage.dart
More file actions
41 lines (39 loc) · 1.01 KB
/
homePage.dart
File metadata and controls
41 lines (39 loc) · 1.01 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
import 'package:flipkart_flutter_ui/src/ui/widgets/Drawerfile.dart';
import 'package:flipkart_flutter_ui/src/ui/body.dart';
import 'package:flutter/material.dart';
class HomePage extends StatefulWidget {
@override
_HomePageState createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
elevation: 0,
title: Image.asset(
'assets/flutter1.png',
height: MediaQuery.of(context).size.height / 2,
width: MediaQuery.of(context).size.width / 4
),
actions: <Widget>[
Icon(
Icons.notifications,
size: 20,
),
Padding(
padding: const EdgeInsets.only(left: 20, right: 20),
child: Icon(
Icons.shopping_cart,
size: 20
),
)
],
),
drawer: Drawer(
child: Drawerfile(),
),
body: Body(),
);
}
}