Skip to content

Commit

Permalink
linked Send and Request screens
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivamGoyal1899 committed Nov 21, 2019
1 parent 117de4c commit 9f600f0
Showing 1 changed file with 43 additions and 26 deletions.
69 changes: 43 additions & 26 deletions lib/screens/homeScreen.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'package:BHIM/screens/requestScreen.dart';
import 'package:BHIM/screens/sendScreen.dart';
import 'package:barcode_scan/barcode_scan.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
Expand Down Expand Up @@ -84,35 +86,50 @@ class _HomeScreenState extends State<HomeScreen> {
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[
Container(
padding: EdgeInsets.all(15.0),
height: 75.0,
width: 75.0,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(25),
topRight: Radius.circular(25),
bottomLeft: Radius.circular(25),
bottomRight: Radius.circular(25),
GestureDetector(
child: Container(
padding: EdgeInsets.all(15.0),
height: 75.0,
width: 75.0,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(25),
topRight: Radius.circular(25),
bottomLeft: Radius.circular(25),
bottomRight: Radius.circular(25),
),
),
child: Image.asset('assets/images/send.png'),
),
),
child: Image.asset('assets/images/send.png'),
),
Container(
padding: EdgeInsets.all(15.0),
height: 75.0,
width: 75.0,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(25),
topRight: Radius.circular(25),
bottomLeft: Radius.circular(25),
bottomRight: Radius.circular(25),
onTap: () {
Navigator.of(context).push(MaterialPageRoute(
builder: (BuildContext context) {
return SendScreen();
}));
}),
GestureDetector(
child: Container(
padding: EdgeInsets.all(15.0),
height: 75.0,
width: 75.0,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(25),
topRight: Radius.circular(25),
bottomLeft: Radius.circular(25),
bottomRight: Radius.circular(25),
),
),
child: Image.asset('assets/images/receive.png'),
),
child: Image.asset('assets/images/receive.png'),
onTap: () {
Navigator.of(context).push(
MaterialPageRoute(builder: (BuildContext context) {
return RequestScreen();
}));
},
),
GestureDetector(
child: Container(
Expand Down

0 comments on commit 9f600f0

Please sign in to comment.