#first commit
This commit is contained in:
18
lib/features/home/presentation/pages/home_page.dart
Normal file
18
lib/features/home/presentation/pages/home_page.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
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}')),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user