fix header

merge-requests/600/head
Elham Rababah 5 years ago
parent 50a240122d
commit b6e698d4e4

@ -93,7 +93,12 @@ class _PatientsScreenNewState extends State<PatientsScreenNew> {
}, },
builder: (_, model, w) => AppScaffold( builder: (_, model, w) => AppScaffold(
appBarTitle: "Search Patient", appBarTitle: "Search Patient",
isShowAppBar: false, isShowAppBar: true,
appBar: !widget.isSearch && !widget.isInpatient?HeaderInSearch(
title: "My Out patient",
):HeaderInSearch(
title: "Search for ${widget.searchKey}",
),
baseViewModel: model, baseViewModel: model,
body: Container( body: Container(
color: Colors.grey[200], color: Colors.grey[200],
@ -103,14 +108,6 @@ class _PatientsScreenNewState extends State<PatientsScreenNew> {
Container( Container(
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
if(widget.isSearch)
HeaderInSearch(
title: "Search for ${widget.searchKey}",
),
if(!widget.isSearch && !widget.isInpatient)
HeaderInSearch(
title: "My Out patient",
),
if(!widget.isInpatient) if(!widget.isInpatient)
Container( Container(
// color: Colors.red, // color: Colors.red,

Loading…
Cancel
Save