Finalized OAuth flow, added /profile/{LOGIN} routes, improved home_view with a background

This commit is contained in:
2025-05-14 21:01:47 +02:00
parent ecd2446380
commit 867b617a41
7 changed files with 121 additions and 46 deletions

View File

@@ -2,7 +2,8 @@
import 'package:flutter/material.dart';
class ProfileScreen extends StatelessWidget {
const ProfileScreen({super.key});
final String login;
const ProfileScreen({super.key, required this.login});
@override
Widget build(BuildContext context) {
@@ -11,9 +12,9 @@ class ProfileScreen extends StatelessWidget {
body: Center(
child: ElevatedButton(
onPressed: () {
Navigator.pushNamed(context, '/');
Navigator.pushNamed(context, '/login');
},
child: const Text('Go to Home'),
child: Text('Go to ${login}'),
),
),
);