19 lines
491 B
Dart
19 lines
491 B
Dart
|
|
import 'package:flutter/material.dart';
|
||
|
|
|
||
|
|
import '../../../../core/app/app_cubit.dart';
|
||
|
|
import '../../../../core/di/injection.dart';
|
||
|
|
|
||
|
|
class HomePage extends StatelessWidget {
|
||
|
|
// final User user;
|
||
|
|
// const HomePage({super.key, required this.user});
|
||
|
|
|
||
|
|
@override
|
||
|
|
Widget build(BuildContext context) {
|
||
|
|
final user = sl<AppCubit>().state.user;
|
||
|
|
return Scaffold(
|
||
|
|
appBar: AppBar(title: const Text('Home')),
|
||
|
|
body: Center(child: Text('Welcome ${user?.username}')),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|