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:
@@ -7,7 +7,7 @@ import '../../utils/util_web.dart' if (dart.library.io) '../../utils/util_io.dar
|
||||
class MobileIndexCarousel extends StatefulWidget {
|
||||
final List<Gallery> galleries;
|
||||
|
||||
const MobileIndexCarousel(this.galleries, {Key key}) : super(key: key);
|
||||
const MobileIndexCarousel(this.galleries, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
@@ -39,8 +39,8 @@ class MobileIndexCarouselState extends State<MobileIndexCarousel> {
|
||||
),
|
||||
),
|
||||
onTap: () {
|
||||
if (i.linkUrl != null && i.linkUrl.isNotEmpty) {
|
||||
Util.openWebUrl(context, i.linkUrl);
|
||||
if (i.linkUrl?.isNotEmpty == true) {
|
||||
Util.openWebUrl(context, i.linkUrl!);
|
||||
}
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user