iampawan / Flutter-UI-Kit

Flutter app for collection of UI in a UIKit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dashboard 2 onPressed doesnt work

NTMS2017 opened this issue · comments

Hi Pawan,

The dashboard 2 onPressed doesnt work

new SizedBox.fromSize(
size: Size.square(_myWidth / 5),
child: Card(
color: Colors.yellow.shade900,
child: LabelBelowIcon(
betweenHeight: 5.0,
icon: Icons.shop,
label: "Harcama",
iconColor: Colors.white,
isCircleEnabled: false,
onPressed: () {
Navigator.pop(
context,
new MaterialPageRoute(
builder: (context) =>
new MySpending(title: "MySpending")));
},
),
),
),

Dashboard 2 opens on Press and then it is not supposed to work further

Hi Pawan,

In dashboard 2 opens on press and shows the "Pay Your Bills" buttons like you design using the new SizedBox.fromSize. When I look at your code there is however its a onTab settings. So when I try with above code I didn't pop or push to new page. Thanks