getOrderSuccessUiTemplate function

String getOrderSuccessUiTemplate({
  1. required String className,
  2. required String isLoading,
})

Implementation

String getOrderSuccessUiTemplate(
    {required String className, required String isLoading}) {
  return '''
CustomBody(
      title: "",
      isLoading: $isLoading,
      appBarLeading: const SizedBox(),
      child: Center(
        child: Padding(
          padding: EdgeInsets.all(30.sp),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Container(
                width: 100.sp,
                height: 100.sp,
                decoration: BoxDecoration(color: Colors.green.withOpacity(0.1), shape: BoxShape.circle),
                child: Icon(Icons.check_circle_rounded, color: Colors.green, size: 60.sp),
              ),
              SizedBox(height: 30.sp),
              TextWidget(text: "Order Successful!", textSize: 24.sp, fontWeight: FontWeight.bold),
              SizedBox(height: 12.sp),
              TextWidget(
                text: "Your order #ET-98765 has been placed successfully. You can track it in the 'My Orders' section.",
                color: AppColors.grey,
                textAlign: TextAlign.center,
                textSize: 14.sp,
              ),
              SizedBox(height: 40.sp),
              SizedBox(
                width: double.infinity,
                child: ElevatedButton(
                  onPressed: () {},
                  style: ElevatedButton.styleFrom(
                    backgroundColor: AppColors.primary,
                    padding: EdgeInsets.symmetric(vertical: 16.sp),
                    shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16.sp)),
                  ),
                  child: TextWidget(text: "Track Order", color: AppColors.white, fontWeight: FontWeight.bold),
                ),
              ),
              SizedBox(height: 16.sp),
              TextButton(
                onPressed: () {},
                child: TextWidget(text: "Continue Shopping", color: AppColors.primary, fontWeight: FontWeight.w600),
              ),
            ],
          ),
        ),
      ),
    )''';
}