From 14f92f6c582bb7e7167f1959117117f2eb5782a3 Mon Sep 17 00:00:00 2001 From: Mohammad Aljammal Date: Wed, 9 Dec 2020 11:02:33 +0200 Subject: [PATCH] remove updated button --- .../insurance/insurance_update_screen.dart | 77 ++++++++++--------- 1 file changed, 42 insertions(+), 35 deletions(-) diff --git a/lib/pages/insurance/insurance_update_screen.dart b/lib/pages/insurance/insurance_update_screen.dart index b088d477..a7e7c32b 100644 --- a/lib/pages/insurance/insurance_update_screen.dart +++ b/lib/pages/insurance/insurance_update_screen.dart @@ -1,15 +1,11 @@ import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart'; import 'package:diplomaticquarterapp/widgets/buttons/secondary_button.dart'; import 'package:flutter/material.dart'; -import 'package:diplomaticquarterapp/config/size_config.dart'; import 'package:flutter/cupertino.dart'; import '../base/base_view.dart'; import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart'; import 'package:diplomaticquarterapp/widgets/data_display/text.dart'; import 'package:diplomaticquarterapp/core/viewModels/insurance_card_View_model.dart'; -import 'package:diplomaticquarterapp/widgets/others/rounded_container.dart'; -import 'package:rating_bar/rating_bar.dart'; -import 'package:diplomaticquarterapp/widgets/buttons/button.dart'; class InsuranceUpdate extends StatefulWidget { @override @@ -31,6 +27,7 @@ class _InsuranceUpdateState extends State _tabController.dispose(); } + //TODO implement update card Widget build(BuildContext context) { return BaseView( onModelReady: (model) => model.getInsuranceUpdated(), @@ -144,6 +141,9 @@ class _InsuranceUpdateState extends State color: Colors.black, fontWeight: FontWeight.w500, ), + SizedBox( + height: 8, + ), Texts( TranslationBase.of(context) .fileno + @@ -162,29 +162,30 @@ class _InsuranceUpdateState extends State ), ), ), - Expanded( - flex: 2, - child: Container( - // height: MediaQuery.of(context).size.height * 0.12, - margin: EdgeInsets.only(top: 2.0), - child: Column( - children: [ - Container( - child: SecondaryButton( - label: TranslationBase.of( - context) - .updateInsurance, - small: true, - textColor: Colors.white, - // color: Colors.grey, + if (false) + Expanded( + flex: 2, + child: Container( + // height: MediaQuery.of(context).size.height * 0.12, + margin: EdgeInsets.only(top: 2.0), + child: Column( + children: [ + Container( + child: SecondaryButton( + label: TranslationBase.of( + context) + .updateInsurance, + small: true, + textColor: Colors.white, + // color: Colors.grey, + ), + //height: 45, + // width:90 ), - //height: 45, - // width:90 - ), - ], + ], + ), ), - ), - ) + ) ], ), ), @@ -228,16 +229,17 @@ class _InsuranceUpdateState extends State crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text( - model.user.firstName + - " " + - model.user.lastName, - style: TextStyle( - fontSize: 14.0, - color: Colors.black, - fontWeight: - FontWeight.w500, - letterSpacing: 1.0)), + Texts( + model.user.firstName + + " " + + model.user.lastName, + fontSize: 14, + fontWeight: FontWeight.w500, + color: Colors.black, + ), + SizedBox( + height: 8, + ), Texts( TranslationBase.of(context) .fileno + @@ -248,12 +250,17 @@ class _InsuranceUpdateState extends State .patientID .toString(), fontSize: 14, + fontWeight: FontWeight.w500, color: Colors.black, ), + SizedBox( + height: 8, + ), Texts( model.insuranceUpdate[index] .createdOn, fontSize: 14, + fontWeight: FontWeight.w500, color: Colors.black, ), ],