update home to MIHHOMLegacy

This commit is contained in:
2025-03-25 13:37:13 +02:00
parent 9be15edad2
commit c18702c778
2 changed files with 5 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ import '../../mih_objects/notification.dart';
import '../test/test.dart'; import '../test/test.dart';
// ignore: must_be_immutable // ignore: must_be_immutable
class MIHHome extends StatefulWidget { class MIHHomeLegacy extends StatefulWidget {
final AppUser signedInUser; final AppUser signedInUser;
final BusinessUser? businessUser; final BusinessUser? businessUser;
final Business? business; final Business? business;
@@ -50,7 +50,7 @@ class MIHHome extends StatefulWidget {
final bool isBusinessUserNew; final bool isBusinessUserNew;
final bool isDevActive; final bool isDevActive;
bool personalSelected; bool personalSelected;
MIHHome({ MIHHomeLegacy({
super.key, super.key,
required this.signedInUser, required this.signedInUser,
required this.businessUser, required this.businessUser,
@@ -66,10 +66,10 @@ class MIHHome extends StatefulWidget {
}); });
@override @override
State<MIHHome> createState() => _MIHHomeState(); State<MIHHomeLegacy> createState() => _MIHHomeLegacyState();
} }
class _MIHHomeState extends State<MIHHome> { class _MIHHomeLegacyState extends State<MIHHomeLegacy> {
final proPicController = TextEditingController(); final proPicController = TextEditingController();
final TextEditingController searchController = TextEditingController(); final TextEditingController searchController = TextEditingController();
final FocusNode _focusNode = FocusNode(); final FocusNode _focusNode = FocusNode();

View File

@@ -242,7 +242,7 @@ class _MIHProfileGetterState extends State<MIHProfileGetter> {
builder: (BuildContext context, snapshot) { builder: (BuildContext context, snapshot) {
if (snapshot.connectionState == ConnectionState.done) { if (snapshot.connectionState == ConnectionState.done) {
if (snapshot.hasData) { if (snapshot.hasData) {
return MIHHome( return MIHHomeLegacy(
signedInUser: snapshot.requireData.signedInUser, signedInUser: snapshot.requireData.signedInUser,
businessUser: snapshot.data!.businessUser, businessUser: snapshot.data!.businessUser,
business: snapshot.data!.business, business: snapshot.data!.business,