phase3(critical-path): home page chain null-safe
home.dart + desktop/mobile navigation, carousels, index content widgets, customers_logo, appbar_menu, navigation_drawer, MobileBottomNav, double_back. Fixes: Key? params, nullable State fields, Scrollbar thumbVisibility, ModalRoute.of()?, badges hide Badge, cartInfos local promotion.
This commit is contained in:
@@ -12,12 +12,12 @@ import '../../widgets/general/navigationbar_logo.dart';
|
||||
import '../../widgets/general/text_link.dart';
|
||||
|
||||
class DesktopAppBarMenu extends StatelessWidget {
|
||||
User _user;
|
||||
User? _user;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
_user = store.state.user;
|
||||
String currentRoute = ModalRoute.of(context).settings.name;
|
||||
String currentRoute = ModalRoute.of(context)?.settings.name ?? '';
|
||||
Widget menuBar = Container(
|
||||
height: 56.0,
|
||||
padding: EdgeInsets.only(left: 10.0, right: 10.0, top: 5.0, bottom: 5.0),
|
||||
|
||||
Reference in New Issue
Block a user