You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
115 lines
4.7 KiB
Dart
115 lines
4.7 KiB
Dart
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
|
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'Weight/WeightHomePage.dart';
|
|
import 'blood_pressure/BloodPressureHomePage.dart';
|
|
import 'blood_suger/blood_sugar_home_page.dart';
|
|
|
|
class MyTrackers extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return AppScaffold(
|
|
appBarTitle: 'My Tracker',
|
|
isShowAppBar: true,
|
|
body: SingleChildScrollView(
|
|
child: Container(
|
|
padding: EdgeInsets.all(12),
|
|
margin: EdgeInsets.all(12),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
children: [
|
|
Expanded(
|
|
child: InkWell(
|
|
onTap: ()=> Navigator.push(context, FadePage(page: BloodSugarHomePage())),
|
|
child: Container(
|
|
margin: EdgeInsets.all(5),
|
|
width: MediaQuery.of(context).size.width*0.35,
|
|
height:MediaQuery.of(context).size.width*0.35 ,
|
|
decoration: BoxDecoration(
|
|
shape: BoxShape.rectangle,
|
|
borderRadius: BorderRadius.circular(8),
|
|
color: Colors.white
|
|
),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Image.asset('assets/tracker/blood-suger.png',width: 60.0,),
|
|
SizedBox(height: 15,),
|
|
Text('Blood Sugar'),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Expanded(
|
|
child: InkWell(
|
|
onTap: ()=> Navigator.push(context, FadePage(page: BloodPressureHomePage())),
|
|
child: Container(
|
|
margin: EdgeInsets.all(5),
|
|
width: MediaQuery.of(context).size.width*0.35,
|
|
height:MediaQuery.of(context).size.width*0.35 ,
|
|
decoration: BoxDecoration(
|
|
shape: BoxShape.rectangle,
|
|
borderRadius: BorderRadius.circular(8),
|
|
color: Colors.white
|
|
),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Image.asset('assets/tracker/blood-pressure.png',width: 60.0,),
|
|
SizedBox(height: 15,),
|
|
Text('Blood Pressure'),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
Row(
|
|
//mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
children: [
|
|
Expanded(
|
|
child: InkWell(
|
|
onTap: ()=> Navigator.push(context, FadePage(page: WeightHomePage())),
|
|
child: Container(
|
|
margin: EdgeInsets.all(5),
|
|
width: MediaQuery.of(context).size.width*0.35,
|
|
height:MediaQuery.of(context).size.width*0.35 ,
|
|
decoration: BoxDecoration(
|
|
shape: BoxShape.rectangle,
|
|
borderRadius: BorderRadius.circular(8),
|
|
color: Colors.white
|
|
),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Image.asset('assets/tracker/weight.png',width: 60.0,),
|
|
SizedBox(height: 15,),
|
|
Text('Weight'),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Expanded(
|
|
child: Container(),
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|