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

@@ -8,24 +8,20 @@ import '../widgets/desktop/desktop_blog.dart';
import '../widgets/mobile/mobile_blog.dart';
class Blog extends StatelessWidget {
final Key key;
final int businessId;
const Blog({this.key, int businessId}) :
const Blog({Key? key, required int businessId}) :
businessId = businessId ?? Constants.BUSINESS_ID;
@override
Widget build(BuildContext context) {
return ResponsiveBuilder(
builder: (context, sizingInformation) =>
ScreenTypeLayout(
mobile: MobileBlog(businessId: businessId,),
tablet: DesktopBlog(businessId: businessId,),
desktop: Scrollbar(
isAlwaysShown: true,
child: DesktopBlog(businessId: businessId,),
),
),
return ScreenTypeLayout.builder(
mobile: (context) => MobileBlog(businessId: businessId),
tablet: (context) => DesktopBlog(businessId: businessId),
desktop: (context) => Scrollbar(
thumbVisibility: true,
child: DesktopBlog(businessId: businessId),
),
);
}