This commit is contained in:
Hamza-Ayed
2024-05-23 02:10:42 +03:00
parent da6741e24e
commit 3ff0eace3f
10 changed files with 127 additions and 102 deletions

View File

@@ -334,41 +334,30 @@ class MainBottomMenuMap extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(
height: 30,
height: 25,
child: Text('${'Where to'.tr} ${box.read(BoxName.name)}')),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
controller.noCarString == false
? Text('Nearest Car for you about '.tr)
: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
color: AppColor.redColor,
),
child: null
// Padding(
// padding: const EdgeInsets.all(6),
// child: Text(
// 'No Car in your site. Sorry!'.tr,
// style: AppStyle.title
// .copyWith(color: AppColor.secondaryColor),
// ),
// ),
),
controller.noCarString == false
? Container(
decoration: BoxDecoration(
border:
Border.all(color: AppColor.redColor, width: 3)),
child: Padding(
padding: const EdgeInsets.all(4),
child: Text((controller.nearestCar != null
? controller.nearestDistance.toStringAsFixed(0)
: 'N/A')),
),
)
: const SizedBox(),
if (controller.noCarString)
Text('Nearest Car for you about '.tr)
else
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
color: AppColor.redColor,
),
child: null,
),
if (!controller.noCarString)
Padding(
padding: const EdgeInsets.all(4),
child: Text(
(controller.nearestCar != null
? controller.nearestDistance.toStringAsFixed(0)
: ''),
),
),
],
)
],