WD: header added to location list

merge-update-with-lab-changes
taha.alam 2 years ago
parent 633059b0be
commit f80892b630

@ -115,11 +115,9 @@ class _LocationListExpandedBodyState extends State<LocationListExpandedBody> {
child: Column( child: Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
SelectBranchHeader(),
Row( SizedBox(height: 8,),
children: [ TextField(
Expanded(
child: TextField(
controller: controller, controller: controller,
onChanged: (v) { onChanged: (v) {
tempListData.clear(); tempListData.clear();
@ -151,22 +149,6 @@ class _LocationListExpandedBodyState extends State<LocationListExpandedBody> {
), ),
), ),
), ),
),
SizedBox(width: 8,),
InkWell(
onTap: () {
Navigator.of(context).pop();
},
child: Padding(
padding: const EdgeInsets.all(4.0),
child: Icon(Icons.close),
))
],
),
SizedBox(
height: 16,
),
SizedBox( SizedBox(
height: 16, height: 16,
), ),
@ -220,27 +202,7 @@ class LocationListWrapBody extends StatelessWidget {
child: Column( child: Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
Row( SelectBranchHeader(),
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
TranslationBase.of(context).selectBranch,
style: TextStyle(
fontSize: 24,
fontWeight: FontWeight.w600,
color: Colors.black,
letterSpacing: -0.96),
),
InkWell(
onTap: () {
Navigator.of(context).pop();
},
child: Padding(
padding: const EdgeInsets.all(4.0),
child: Icon(Icons.close),
))
],
),
SizedBox( SizedBox(
height: 24, height: 24,
), ),
@ -298,3 +260,30 @@ class LocationListWrapBody extends StatelessWidget {
); );
} }
} }
class SelectBranchHeader extends StatelessWidget{
@override
Widget build(BuildContext context) {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
TranslationBase.of(context).selectBranch,
style: TextStyle(
fontSize: 24,
fontWeight: FontWeight.w600,
color: Colors.black,
letterSpacing: -0.96),
),
InkWell(
onTap: () {
Navigator.of(context).pop();
},
child: Padding(
padding: const EdgeInsets.all(4.0),
child: Icon(Icons.close),
))
],
);
}
}

Loading…
Cancel
Save