basic api access, state managment etc

This commit is contained in:
2024-02-11 01:08:51 +01:00
parent 306d9a006a
commit 46897cc51b
16 changed files with 431 additions and 50 deletions

View File

@@ -0,0 +1,34 @@
import 'package:flutter/material.dart';
class AccountChoosePage extends StatelessWidget {
final void Function()? onLogin;
final void Function()? onCreateAccount;
const AccountChoosePage({super.key, this.onLogin, this.onCreateAccount});
@override
Widget build(BuildContext context) {
return Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
ElevatedButton(
style: ElevatedButton.styleFrom(textStyle: const TextStyle(fontSize: 20)),
onPressed: () {
onLogin?.call();
},
child: const Text('Use existing account'),
),
const SizedBox(height: 32),
ElevatedButton(
style: ElevatedButton.styleFrom(textStyle: const TextStyle(fontSize: 20)),
onPressed: () {
onCreateAccount?.call();
},
child: const Text('Create new account'),
),
],
),
);
}
}