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_view_ticket.dart';
class ViewTicket extends StatefulWidget {
final Key key;
final int ticketId;
const ViewTicket(this.ticketId, {this.key}) : super(key: key);
const ViewTicket(this.ticketId, {Key? key}) : super(key: key);
@override
State<StatefulWidget> createState() {
@@ -51,15 +50,15 @@ class ViewTicketState extends State<ViewTicket> {
breadCrumbHeight: sizingInformation.deviceScreenType == DeviceScreenType.mobile ? null : Constants.BREADCRUMB_HEIGHT,
),
drawer: null,
body: ScreenTypeLayout(
mobile: MobileViewTicket(widget.ticketId),
tablet: DesktopViewTicket(widget.ticketId),
desktop: DesktopViewTicket(widget.ticketId),
body: ScreenTypeLayout.builder(
mobile: (context) => MobileViewTicket(widget.ticketId),
tablet: (context) => DesktopViewTicket(widget.ticketId),
desktop: (context) => DesktopViewTicket(widget.ticketId),
),
bottomNavigationBar: ScreenTypeLayout(
mobile: MobileBottomNav(currentIndex: 0,),
tablet: BottomNav(),
desktop: BottomNav(),
bottomNavigationBar: ScreenTypeLayout.builder(
mobile: (context) => MobileBottomNav(currentIndex: 0,),
tablet: (context) => BottomNav(),
desktop: (context) => BottomNav(),
),
),
);