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,6 +162,7 @@ class _InsuranceUpdateState extends State<InsuranceUpdate>
), ),
), ),
), ),
if (false)
Expanded( Expanded(
flex: 2, flex: 2,
child: Container( child: Container(
@ -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