This commit is contained in:
2026-07-12 04:33:48 +08:00
parent f8a90ad305
commit e7ce0f7bae
151 changed files with 2765 additions and 2947 deletions

View File

@@ -13,9 +13,9 @@ import '../utils/utils.dart';
class PlainPage extends StatefulWidget {
final int businessId;
final String slug;
final String? slug;
const PlainPage(this.slug, {this.businessId, Key key}) :
const PlainPage(this.slug, {required this.businessId, Key? key}) :
super(key: key);
@override
@@ -23,7 +23,7 @@ class PlainPage extends StatefulWidget {
}
class PlainPageState extends State<PlainPage> {
Blog blog;
Blog? blog;
@override
Widget build(BuildContext context) {
@@ -43,10 +43,10 @@ class PlainPageState extends State<PlainPage> {
return ResponsiveBuilder(
builder: (context, sizingInformation) =>
ScreenTypeLayout(
mobile: MobilePlainPage(blog),
tablet: DesktopPlainPage(blog),
desktop: DesktopPlainPage(blog),
ScreenTypeLayout.builder(
mobile: (context) => MobilePlainPage(blog!),
tablet: (context) => DesktopPlainPage(blog!),
desktop: (context) => DesktopPlainPage(blog!),
),
);
}