// ignore_for_file: camel_case_types import 'package:flutter/material.dart'; import '../NavigationBar.dart'; const Color aColor = Color.fromARGB(255, 0, 0, 0); const Color bColor = Color.fromARGB(255, 255, 255, 255); const Color cColor = Color.fromRGBO(93, 176, 116, 1); class totalRe extends StatefulWidget { final String ord1; const totalRe({Key? key,required this.ord1}):super(key: key); @override State createState() => _totalReState(); } class _totalReState extends State { @override Widget build(BuildContext context) { return Scaffold( body: Padding( padding: const EdgeInsets.all(8.0), child: Column(children: [ const Spacer(), const Icon(Icons.check_circle_outline,size: 100,color: cColor,), Row(children: const [ Spacer(), Text("Order Confirmed!",style: TextStyle(fontSize: 30,fontWeight: FontWeight.w900),), Spacer(), ],), const SizedBox(height: 15,), Row(children: const [ Spacer(), Text("You confirmed order Name : ",style: TextStyle(fontSize: 15,fontWeight: FontWeight.w700), ), Spacer(), ],), Row(children: [ const Spacer(), Text(widget.ord1,style: const TextStyle(fontSize: 15,fontWeight: FontWeight.w700), ), const Spacer(), ],), const SizedBox(height: 10,), Row(children: const [ Spacer(), Text("Waiting Admin confirmed",style: TextStyle(fontSize: 15,fontWeight: FontWeight.w600),), Spacer(), ],), const SizedBox(height: 100,), Row( children: [const Spacer(), ElevatedButton(style: ElevatedButton.styleFrom(backgroundColor: cColor),onPressed: (){ Navigator.push(context, MaterialPageRoute(builder: ((context) => const MyBottomNavigationBar(getIndex: 0,)))); }, child: const Text("Go to Home")),const Spacer(), ], ), const Spacer(), ],) ) ); } }