-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpayment_info.dart
More file actions
36 lines (33 loc) · 1.05 KB
/
Copy pathpayment_info.dart
File metadata and controls
36 lines (33 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import 'package:flutter/material.dart';
class PaymentInfoScreen extends StatelessWidget {
final cardController = TextEditingController();
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('Enter Payment Info')),
body: Padding(
padding: const EdgeInsets.all(16),
child: Column(
children: [
TextField(
controller: cardController,
decoration: InputDecoration(labelText: 'Card number (mock)'),
keyboardType: TextInputType.number,
),
SizedBox(height: 20),
ElevatedButton(
onPressed: () {
// Normally store via Stripe; here we just simulate
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text(" Payment Info Saved (simulated)")),
);
Navigator.pop(context, true);
},
child: Text("Save & Continue"),
)
],
),
),
);
}
}