remove updated button

merge-update-with-lab-changes
Mohammad Aljammal 5 years ago
parent 554ed1b50a
commit 14f92f6c58

@ -1,15 +1,11 @@
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart'; import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
import 'package:diplomaticquarterapp/widgets/buttons/secondary_button.dart'; import 'package:diplomaticquarterapp/widgets/buttons/secondary_button.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:diplomaticquarterapp/config/size_config.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import '../base/base_view.dart'; import '../base/base_view.dart';
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart'; import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
import 'package:diplomaticquarterapp/widgets/data_display/text.dart'; import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
import 'package:diplomaticquarterapp/core/viewModels/insurance_card_View_model.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 { class InsuranceUpdate extends StatefulWidget {
@override @override
@ -31,6 +27,7 @@ class _InsuranceUpdateState extends State<InsuranceUpdate>
_tabController.dispose(); _tabController.dispose();
} }
//TODO implement update card
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BaseView<InsuranceViewModel>( return BaseView<InsuranceViewModel>(
onModelReady: (model) => model.getInsuranceUpdated(), onModelReady: (model) => model.getInsuranceUpdated(),
@ -144,6 +141,9 @@ class _InsuranceUpdateState extends State<InsuranceUpdate>
color: Colors.black, color: Colors.black,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
), ),
SizedBox(
height: 8,
),
Texts( Texts(
TranslationBase.of(context) TranslationBase.of(context)
.fileno + .fileno +
@ -162,29 +162,30 @@ class _InsuranceUpdateState extends State<InsuranceUpdate>
), ),
), ),
), ),
Expanded( if (false)
flex: 2, Expanded(
child: Container( flex: 2,
// height: MediaQuery.of(context).size.height * 0.12, child: Container(
margin: EdgeInsets.only(top: 2.0), // height: MediaQuery.of(context).size.height * 0.12,
child: Column( margin: EdgeInsets.only(top: 2.0),
children: <Widget>[ child: Column(
Container( children: <Widget>[
child: SecondaryButton( Container(
label: TranslationBase.of( child: SecondaryButton(
context) label: TranslationBase.of(
.updateInsurance, context)
small: true, .updateInsurance,
textColor: Colors.white, small: true,
// color: Colors.grey, textColor: Colors.white,
// color: Colors.grey,
),
//height: 45,
// width:90
), ),
//height: 45, ],
// width:90 ),
),
],
), ),
), )
)
], ],
), ),
), ),
@ -228,16 +229,17 @@ class _InsuranceUpdateState extends State<InsuranceUpdate>
crossAxisAlignment: crossAxisAlignment:
CrossAxisAlignment.start, CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
Text( Texts(
model.user.firstName + model.user.firstName +
" " + " " +
model.user.lastName, model.user.lastName,
style: TextStyle( fontSize: 14,
fontSize: 14.0, fontWeight: FontWeight.w500,
color: Colors.black, color: Colors.black,
fontWeight: ),
FontWeight.w500, SizedBox(
letterSpacing: 1.0)), height: 8,
),
Texts( Texts(
TranslationBase.of(context) TranslationBase.of(context)
.fileno + .fileno +
@ -248,12 +250,17 @@ class _InsuranceUpdateState extends State<InsuranceUpdate>
.patientID .patientID
.toString(), .toString(),
fontSize: 14, fontSize: 14,
fontWeight: FontWeight.w500,
color: Colors.black, color: Colors.black,
), ),
SizedBox(
height: 8,
),
Texts( Texts(
model.insuranceUpdate[index] model.insuranceUpdate[index]
.createdOn, .createdOn,
fontSize: 14, fontSize: 14,
fontWeight: FontWeight.w500,
color: Colors.black, color: Colors.black,
), ),
], ],

Loading…
Cancel
Save