From e2aa56b36b33833c218c82d52d7fc2bb57262eb1 Mon Sep 17 00:00:00 2001 From: Rizz-33 <162025795+Rizz-33@users.noreply.github.com> Date: Tue, 26 Mar 2024 17:49:01 +0530 Subject: [PATCH] feat: receipt page --- lib/components/receipt.dart | 31 +++++++++++++++++++++++++++++++ lib/pages/deliveryprogress.dart | 6 ++++++ 2 files changed, 37 insertions(+) create mode 100644 lib/components/receipt.dart diff --git a/lib/components/receipt.dart b/lib/components/receipt.dart new file mode 100644 index 0000000..70878dd --- /dev/null +++ b/lib/components/receipt.dart @@ -0,0 +1,31 @@ +import 'package:flutter/material.dart'; + +class MyReceipt extends StatelessWidget { + const MyReceipt({super.key}); + + @override + Widget build(BuildContext context) { + return Padding( + padding: EdgeInsets.only(left: 25, right: 25, bottom: 25, top: 50), + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text("Thank you for your order !"), + SizedBox(height: 25,), + Container( + decoration: BoxDecoration( + border: Border.all( + color: Theme.of(context).colorScheme.secondary, + ), + borderRadius: BorderRadius.circular(16) + ), + padding: EdgeInsets.all(25), + child: Text("Receipt here..."), + ) + ], + ), + ), + ); + } +} \ No newline at end of file diff --git a/lib/pages/deliveryprogress.dart b/lib/pages/deliveryprogress.dart index 4c83c66..5e0b2a4 100644 --- a/lib/pages/deliveryprogress.dart +++ b/lib/pages/deliveryprogress.dart @@ -1,3 +1,4 @@ +import 'package:blend_bristo/components/receipt.dart'; import 'package:flutter/material.dart'; class DeliveryProgressPage extends StatelessWidget { @@ -13,6 +14,11 @@ class DeliveryProgressPage extends StatelessWidget { foregroundColor: Theme.of(context).colorScheme.primary, centerTitle: true, ), + body: Column( + children: [ + MyReceipt(), + ], + ), ); } } \ No newline at end of file