1
0
mirror of https://github.com/flutter/samples.git synced 2026-06-26 08:08:02 +00:00

Various simple fixes (#2866)

*Replace this paragraph with a description of what this PR is changing
or adding, and why. Consider including before/after screenshots.*

*List which issues are fixed by this PR. For larger changes, raising an
issue first helps
reduce redundant work.*

## Pre-launch Checklist

- [ ] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [ ] I signed the [CLA].
- [ ] I read the [Contributors Guide].
- [ ] I have added sample code updates to the [changelog].
- [ ] I updated/added relevant documentation (doc comments with `///`).


If you need help, consider asking for advice on the #hackers-devrel
channel on [Discord].

<!-- Links -->
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/master/docs/contributing/Style-guide-for-Flutter-repo.md
[CLA]: https://cla.developers.google.com/
[Discord]:
https://github.com/flutter/flutter/blob/master/docs/contributing/Chat.md
[Contributors Guide]:
https://github.com/flutter/samples/blob/main/CONTRIBUTING.md
[changelog]: ../CHANGELOG.md
This commit is contained in:
Eric Windmill
2026-06-19 14:54:02 -07:00
committed by GitHub
parent 659acd0690
commit d9a2b781a2
2 changed files with 13 additions and 10 deletions

View File

@@ -3,11 +3,17 @@ import 'package:provider/provider.dart';
import '../../../data/repositories/booking/booking_repository.dart';
import '../../../data/repositories/user/user_repository.dart';
import '../../auth/logout/view_models/logout_viewmodel.dart';
import '../view_models/home_viewmodel.dart';
import 'home_screen.dart';
class HomeScreenContainer extends StatefulWidget {
const HomeScreenContainer({super.key});
const HomeScreenContainer({
super.key,
required this.logoutViewModel,
});
final LogoutViewModel logoutViewModel;
@override
State<HomeScreenContainer> createState() => _HomeScreenContainerState();
@@ -28,7 +34,10 @@ class _HomeScreenContainerState extends State<HomeScreenContainer> {
@override
Widget build(BuildContext context) {
return HomeScreen(viewModel: _viewModel);
return HomeScreen(
viewModel: _viewModel,
logoutViewModel: widget.logoutViewModel,
);
}
@override