Skip to content

Commit

Permalink
feat: receipt page
Browse files Browse the repository at this point in the history
  • Loading branch information
Rizz-33 committed Mar 26, 2024
1 parent d219951 commit e2aa56b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
31 changes: 31 additions & 0 deletions lib/components/receipt.dart
Original file line number Diff line number Diff line change
@@ -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..."),
)
],
),
),
);
}
}
6 changes: 6 additions & 0 deletions lib/pages/deliveryprogress.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:blend_bristo/components/receipt.dart';
import 'package:flutter/material.dart';

class DeliveryProgressPage extends StatelessWidget {
Expand All @@ -13,6 +14,11 @@ class DeliveryProgressPage extends StatelessWidget {
foregroundColor: Theme.of(context).colorScheme.primary,
centerTitle: true,
),
body: Column(
children: [
MyReceipt(),
],
),
);
}
}

0 comments on commit e2aa56b

Please sign in to comment.