Skip to content

Commit

Permalink
feat: payment page
Browse files Browse the repository at this point in the history
  • Loading branch information
Rizz-33 committed Mar 26, 2024
1 parent 1907af3 commit 301ba8b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/pages/cart.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:blend_bristo/components/button.dart';
import 'package:blend_bristo/components/carttile.dart';
import 'package:blend_bristo/models/restaurant.dart';
import 'package:blend_bristo/pages/payment.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

Expand Down Expand Up @@ -87,7 +88,14 @@ class CartPage extends StatelessWidget {
),

//button to pay
MyButton(text: "Go To Checkout", onTap: (){})
MyButton(
text: "Go To Checkout",
onTap: () => Navigator.push(
context,
MaterialPageRoute(builder: (context) => PaymentPage()),
),
),
SizedBox(height: 25,)
],
),
);
Expand Down
21 changes: 21 additions & 0 deletions lib/pages/payment.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import 'package:flutter/material.dart';

class PaymentPage extends StatefulWidget {
const PaymentPage({super.key});

@override
State<PaymentPage> createState() => _PaymentPageState();
}

class _PaymentPageState extends State<PaymentPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Theme.of(context).colorScheme.background,
appBar: AppBar(
backgroundColor: Colors.transparent,
title: Text("Checkout"),
),
);
}
}

0 comments on commit 301ba8b

Please sign in to comment.