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

@@ -14,10 +14,9 @@ import '../widgets/mobile/MobileBottomNav.dart';
import '../widgets/mobile/mobile_new_ticket.dart';
class NewTicket extends StatefulWidget {
final Key key;
final int businessId;
final int? businessId;
const NewTicket({this.key, int businessId}) :
const NewTicket({Key? key, int? businessId}) :
businessId = businessId ?? Constants.BUSINESS_ID;
@override
@@ -52,15 +51,15 @@ class NewTicketState extends State<NewTicket> {
breadCrumbHeight: sizingInformation.deviceScreenType == DeviceScreenType.mobile ? null : Constants.BREADCRUMB_HEIGHT,
),
drawer: null,
body: ScreenTypeLayout(
mobile: MobileNewTicket(businessId: widget.businessId,),
tablet: DesktopNewTicket(businessId: widget.businessId,),
desktop: DesktopNewTicket(businessId: widget.businessId,),
body: ScreenTypeLayout.builder(
mobile: (context) => MobileNewTicket(businessId: widget.businessId!,),
tablet: (context) => DesktopNewTicket(businessId: widget.businessId!,),
desktop: (context) => DesktopNewTicket(businessId: widget.businessId!,),
),
bottomNavigationBar: ScreenTypeLayout(
mobile: MobileBottomNav(currentIndex: 0,),
tablet: BottomNav(),
desktop: BottomNav(),
bottomNavigationBar: ScreenTypeLayout.builder(
mobile: (context) => MobileBottomNav(currentIndex: 0,),
tablet: (context) => BottomNav(),
desktop: (context) => BottomNav(),
),
),
);