// ignore_for_file: prefer_const_constructors, avoid_unnecessary_containers, constant_identifier_names
import 'package:flutter/material.dart';
import 'package:flutter_application_1/Project/NavigationBar.dart';
const IconData local_fire_department_sharp =
IconData(0xea8c, fontFamily: 'MaterialIcons');
const IconData trending_up_rounded =
IconData(0xf0254, fontFamily: 'MaterialIcons', matchTextDirection: true);
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);
// ignore: use_key_in_widget_constructors
class TotalPro extends StatefulWidget {
final String ord;
const TotalPro({Key? key, required this.ord}) : super(key: key);
@override
State<TotalPro> createState() => _TotalProState();
}
class _TotalProState extends State<TotalPro> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Padding(
padding: const EdgeInsets.all(8.0),
child: Column(
children: [
Spacer(),
Icon(
Icons.check_circle_outline,
size: 100,
color: cColor,
),
Row(
children: const [
Spacer(),
Text(
"Order Confirmed!",
style: TextStyle(fontSize: 30, fontWeight: FontWeight.w900),
),
Spacer(),
],
),
SizedBox(
height: 15,
),
Row(
children: const [
Spacer(),
Text(
"You confirmed order Name : ",
style: TextStyle(fontSize: 15, fontWeight: FontWeight.w700),
),
Spacer(),
],
),
Row(
children: [
Spacer(),
Text(
"${widget.ord}",
style: TextStyle(fontSize: 15, fontWeight: FontWeight.w700),
),
Spacer(),
],
),
SizedBox(
height: 10,
),
Row(
children: const [
Spacer(),
Text(
"Waiting Admin confirmed",
style: TextStyle(fontSize: 15, fontWeight: FontWeight.w600),
),
Spacer(),
],
),
SizedBox(
height: 100,
),
Row(
children: [
Spacer(),
ElevatedButton(
style: ElevatedButton.styleFrom(backgroundColor: cColor),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: ((context) => MyBottomNavigationBar(
getIndex: 0,
)),
),
);
},
child: Text("Go to Home")),
Spacer(),
],
),
Spacer(),
],
),
),
);
}
}