-
Notifications
You must be signed in to change notification settings - Fork 0
/
HomePage.dart
48 lines (47 loc) · 1.35 KB
/
HomePage.dart
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
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:provider/provider.dart';
import 'notifyy.dart';
import 'Numbers1.dart';
class TotalPriceBar extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.cyan,
iconTheme: IconThemeData(color: Colors.white),
actions: [
IconButton(
icon: Icon(Icons.arrow_forward),
onPressed: () {
Get.to(() => Numbers1());
},
),
],
),
body: Container(
decoration: BoxDecoration(
image: DecorationImage(
image: NetworkImage('https://i.pinimg.com/originals/ef/3d/6e/ef3d6e995adb94af6aaed49548c66147.gif'),
fit: BoxFit.cover,
),
),
padding: EdgeInsets.all(16.0),
child: Center(
child: Consumer<Notifyy>(
builder: (context, notifyy, child) {
return Text(
'Total Price: \$${notifyy.totalPrice}',
style: TextStyle(
color: Colors.cyan,
fontWeight: FontWeight.bold,
fontSize: 30,
),
);
},
),
),
),
);
}
}