This commit is contained in:
Hamza-Ayed
2023-08-17 17:07:27 +03:00
parent ceced0735c
commit 6635a46933
11 changed files with 418 additions and 186 deletions

View File

@@ -25,9 +25,7 @@ class PickerAnimtionContainerFormPlaces extends StatelessWidget {
right: 5,
child: AnimatedContainer(
duration: const Duration(milliseconds: 300),
height: controller.places.isNotEmpty
? 300
: controller.heightPickerContainer,
height: controller.heightPickerContainer,
decoration: const BoxDecoration(
boxShadow: [
BoxShadow(
@@ -41,7 +39,7 @@ class PickerAnimtionContainerFormPlaces extends StatelessWidget {
topRight: Radius.circular(15),
)),
child: Column(
mainAxisAlignment: MainAxisAlignment.end,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
controller.isPickerShown
? const SizedBox()
@@ -50,6 +48,7 @@ class PickerAnimtionContainerFormPlaces extends StatelessWidget {
style: AppStyle.title,
),
Column(
mainAxisAlignment: MainAxisAlignment.start,
children: [
const SizedBox(
height: 5,
@@ -61,7 +60,7 @@ class PickerAnimtionContainerFormPlaces extends StatelessWidget {
controller.changeHeight();
},
child: Container(
height: 4,
height: 7,
width: Get.width * .3,
decoration: BoxDecoration(
color: AppColor.accentColor,
@@ -76,7 +75,7 @@ class PickerAnimtionContainerFormPlaces extends StatelessWidget {
? InkWell(
onTap: () {},
child: formSearchPlaces(),
)
)
: Row(
mainAxisAlignment:
MainAxisAlignment.spaceEvenly,
@@ -85,12 +84,10 @@ class PickerAnimtionContainerFormPlaces extends StatelessWidget {
onPressed: () {
controller.changePickerShown();
},
child: Builder(builder: (context) {
return Text(
"Pick your destination from Map".tr,
style: AppStyle.subtitle,
);
}),
child: Text(
"Pick your destination from Map".tr,
style: AppStyle.subtitle,
),
),
TextButton(
onPressed: () async {
@@ -181,37 +178,38 @@ class PickerAnimtionContainerFormPlaces extends StatelessWidget {
},
),
),
onCancel: () {},
);
},
child: Builder(builder: (context) {
return Text(
"Go To Favorite Places".tr,
style: AppStyle.subtitle,
);
}),
child: Text(
"Go To Favorite Places".tr,
style: AppStyle.subtitle,
),
),
],
)
),
if (controller.isPickerShown &&
controller.places.isEmpty)
MyElevatedButton(
title: 'Go to this Target',
onPressed: () async {
await controller.getMap(
'${controller.mylocation.latitude},${controller.mylocation.longitude}',
'${controller.newMylocation.latitude},${controller.newMylocation.longitude}',
);
controller.changePickerShown();
controller.changeButtomSheetShown();
controller.bottomSheet();
// await sql
// .getAllData(TableName.placesFavorite)
// .then((value) => print(value));
},
),
if (controller.isPickerShown &&
controller.places.isEmpty)
const SizedBox(),
],
),
if (controller.isPickerShown && controller.places.isEmpty)
MyElevatedButton(
title: 'Go to this Target',
onPressed: () async {
await controller.getMap(
'${controller.mylocation.latitude},${controller.mylocation.longitude}',
'${controller.newMylocation.latitude},${controller.newMylocation.longitude}',
);
controller.changePickerShown();
controller.changeButtomSheetShown();
controller.bottomSheet();
// await sql
// .getAllData(TableName.placesFavorite)
// .then((value) => print(value));
},
),
if (controller.isPickerShown && controller.places.isEmpty)
const SizedBox(),
],
),
),