Files
flutter_wisetronic/lib/pages/checkout.dart
2026-07-12 04:33:48 +08:00

31 lines
866 B
Dart

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:responsive_builder/responsive_builder.dart';
import '../store/actions.dart';
import '../store/store.dart';
import '../widgets/desktop/desktop_checkout.dart';
import '../widgets/mobile/mobile_checkout.dart';
class Checkout extends StatelessWidget {
final int businessId;
const Checkout(this.businessId, {Key? key}) :
super(key: key);
@override
Widget build(BuildContext context) {
store.dispatch(UpdateContext(context));
return ResponsiveBuilder(
builder: (context, sizingInformation) =>
ScreenTypeLayout.builder(
mobile: (context) => MobileCheckout(businessId),
tablet: (context) => DesktopCheckout(businessId),
desktop: (context) => DesktopCheckout(businessId),
),
);
}
}