// ignore_for_file: prefer_const_constructors, avoid_unnecessary_containers
import 'dart:developer';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:flutter/src/widgets/container.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:flutter_application_1/Project/NavigationBar.dart';
import 'package:provider/provider.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 c;
TotalPro({Key? key, required this.c}) : 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(0.0),
child: Container(
constraints: BoxConstraints.expand(),
decoration: const BoxDecoration(
image: DecorationImage(
image: NetworkImage(
"https://i.pinimg.com/originals/77/7b/07/777b07a784b619eb9840734261133cbd.jpg"),
fit: BoxFit.cover),
),
child: Column(
children: [
Spacer(),
Icon(
Icons.check_circle_outline,
size: 100,
color: cColor,
),
Row(
children: [
Spacer(),
Text(
"Order Confirmed!",
style: TextStyle(fontSize: 30, fontWeight: FontWeight.w900),
),
Spacer(),
],
),
SizedBox(
height: 15,
),
Row(
children: [
Spacer(),
Column(
children: [
Text(
"You confirmed order ID :",
style: TextStyle(
fontSize: 18, fontWeight: FontWeight.w700),
),
SizedBox(
height: 10,
),
Text(
"${widget.c}",
style: TextStyle(
fontSize: 15, fontWeight: FontWeight.w700),
),
],
),
Spacer(),
],
),
SizedBox(
height: 10,
),
Row(
children: [
Spacer(),
Text(
"Waiting Admin confirmed",
style: TextStyle(
fontSize: 15,
fontWeight: FontWeight.w600,
color: Colors.redAccent),
),
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(),
],
),
),
),
);
}
}