mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-03-27 01:18:17 -04:00
33 lines
866 B
Dart
33 lines
866 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
|
|
class LoginPage extends ConsumerWidget {
|
|
const LoginPage({super.key});
|
|
static const path = '/login';
|
|
|
|
@override
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
|
return Scaffold(
|
|
appBar: null,
|
|
body: Center(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
children: [
|
|
const Text("Login Page"),
|
|
ElevatedButton(
|
|
onPressed: () async {
|
|
ref.watch(authNotifierProvider.notifier).login(
|
|
"myEmail",
|
|
"myPassword",
|
|
);
|
|
},
|
|
child: const Text("Login"),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|