import 'package:diplomaticquarterapp/core/model/ImagesInfo.dart'; import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart'; import 'package:diplomaticquarterapp/widgets/data_display/text.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 'package:diplomaticquarterapp/pages/ContactUs/widgets/card_common_contat.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: TranslationBase.of(context).myTracker, showNewAppBar: true, isShowDecPage: true, showNewAppBarTitle: true, backgroundColor: Color(0xffF8F8F8), description: TranslationBase.of(context).infoTrackers, imagesInfo: [ ImagesInfo(imageEn: 'https://hmgwebservices.com/Images/MobileApp/imges-info/my-trackers/en/0.png', imageAr: 'https://hmgwebservices.com/Images/MobileApp/imges-info/my-trackers/ar/0.png') ], body: SingleChildScrollView( child: Container( child: GridView( gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2, crossAxisSpacing: 13, mainAxisSpacing: 9), physics: NeverScrollableScrollPhysics(), padding: EdgeInsets.all(21), shrinkWrap: true, children: [ CardCommonContact( image: 'assets/tracker/blood-suger.png', text: TranslationBase.of(context).bloodSugar, subText: "", type: 3, ), CardCommonContact( image: 'assets/tracker/blood-pressure.png', text: TranslationBase.of(context).bloodPressure, subText: "", type: 4, ), CardCommonContact( image: 'assets/tracker/weight.png', text: TranslationBase.of(context).weight, subText: "", type: 5, ) ]) // 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, // ), // Texts(TranslationBase.of(context).bloodSugar), // ], // ), // ), // ), // ), // 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, // ), // Texts(TranslationBase.of(context).bloodPressure), // ], // ), // ), // ), // ), // ], // ), // 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, // ), // Texts(TranslationBase.of(context).weight), // ], // ), // ), // ), // ), // Expanded( // child: Container(), // ), // ], // ), // ], // ), ), ), ); } }