WD: header added to location list

dev_v3.13.6
taha.alam 2 years ago
parent 633059b0be
commit f80892b630

@ -115,11 +115,9 @@ class _LocationListExpandedBodyState extends State<LocationListExpandedBody> {
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Row(
children: [
Expanded(
child: TextField(
SelectBranchHeader(),
SizedBox(height: 8,),
TextField(
controller: controller,
onChanged: (v) {
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(
height: 16,
),
@ -220,27 +202,7 @@ class LocationListWrapBody extends StatelessWidget {
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
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),
))
],
),
SelectBranchHeader(),
SizedBox(
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