Files
Fondex/lib/screen_ui/parcel_service/order_successfully_placed.dart

84 lines
3.2 KiB
Dart
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import 'package:customer/screen_ui/parcel_service/parcel_dashboard_screen.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:customer/themes/app_them_data.dart';
import 'package:customer/themes/round_button_fill.dart';
import '../../controllers/parcel_dashboard_controller.dart';
import '../../controllers/theme_controller.dart';
class OrderSuccessfullyPlaced extends StatelessWidget {
const OrderSuccessfullyPlaced({super.key});
@override
Widget build(BuildContext context) {
final parcelOrder = Get.arguments['parcelOrder'];
final themeController = Get.find<ThemeController>();
final isDark = themeController.isDark.value;
return Scaffold(
body: SafeArea(
child: Center(
child: SingleChildScrollView(
padding: const EdgeInsets.symmetric(horizontal: 15),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Image.asset(
"assets/images/parcel_order_successfully_placed.png",
),
const SizedBox(height: 20),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 25),
child: Text(
"Your Order Has Been Placed!".tr,
style: AppThemeData.boldTextStyle(
fontSize: 22,
color:
isDark
? AppThemeData.greyDark900
: AppThemeData.grey900,
),
textAlign: TextAlign.center,
),
),
const SizedBox(height: 10),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 50),
child: Text(
"Weve received your parcel booking and its now being processed. You can track its status in real time."
.tr,
style: AppThemeData.mediumTextStyle(
fontSize: 16,
color:
isDark
? AppThemeData.greyDark600
: AppThemeData.grey600,
),
textAlign: TextAlign.center,
),
),
const SizedBox(height: 30),
RoundedButtonFill(
title: "Track Your Order".tr,
onPress: () {
print("Tracking Order: $parcelOrder");
//Get.to(() => TrackOrderScreen(), arguments: {'order': parcelOrder});
Get.offAll(const ParcelDashboardScreen());
ParcelDashboardController controller = Get.put(
ParcelDashboardController(),
);
controller.selectedIndex.value = 1;
},
color: AppThemeData.primary300,
textColor: AppThemeData.grey900,
),
],
),
),
),
),
);
}
}