feat: add auth screens and state management

This commit is contained in:
soragui
2026-01-19 14:50:21 +08:00
parent 58c40c5f00
commit 0ade16350a
10 changed files with 291 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
import 'package:flutter/material.dart';
import 'package:intl_phone_field/intl_phone_field.dart';
class PhoneInputScreen extends StatelessWidget {
const PhoneInputScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Enter Phone Number')),
body: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
IntlPhoneField(
decoration: const InputDecoration(
labelText: 'Phone Number',
border: OutlineInputBorder(borderSide: BorderSide()),
),
initialCountryCode: 'US',
onChanged: (phone) {
// TODO: Handle phone number changes
},
),
const SizedBox(height: 20),
ElevatedButton(onPressed: () {}, child: const Text('Send OTP')),
],
),
),
);
}
}