final
This commit is contained in:
@@ -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(),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user