Script stable handlers (zero corruption): bang(!), late, param-nullable, field-formal field-nullable, arg-bang. Reusable — re-run after manual fixes. Errors: 2374(peak) -> 596 | web build: 1845 -> 571
29 lines
789 B
Dart
29 lines
789 B
Dart
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:responsive_builder/responsive_builder.dart';
|
|
|
|
import '../constants.dart';
|
|
import '../widgets/desktop/desktop_my_support.dart';
|
|
import '../widgets/mobile/mobile_my_support.dart';
|
|
|
|
class MySupport extends StatelessWidget {
|
|
final Key? key;
|
|
final int businessId;
|
|
|
|
const MySupport({this.key, int? businessId}) :
|
|
businessId = businessId ?? Constants.BUSINESS_ID;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ResponsiveBuilder(
|
|
builder: (context, sizingInformation) =>
|
|
ScreenTypeLayout(
|
|
mobile: MobileMySupport(businessId: businessId,),
|
|
tablet: DesktopMySupport(businessId: businessId,),
|
|
desktop: DesktopMySupport(businessId: businessId,),
|
|
),
|
|
);
|
|
}
|
|
|
|
} |