56 lines
1.5 KiB
Dart
56 lines
1.5 KiB
Dart
// import 'package:flutter/material.dart';
|
|
// import 'package:frontend/routes/custom_router.dart';
|
|
//
|
|
// class MyApp extends StatelessWidget {
|
|
// const MyApp({super.key});
|
|
//
|
|
// @override
|
|
// Widget build(BuildContext context) {
|
|
// return MaterialApp.router(
|
|
// title: 'TRIP MANAGEMENT',
|
|
// routerConfig: router,
|
|
// debugShowCheckedModeBanner: false,
|
|
// );
|
|
// }
|
|
// }
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/rendering.dart';
|
|
import 'package:flutter_quill/flutter_quill.dart';
|
|
import 'package:frontend/routes/custom_router.dart';
|
|
import 'package:flutter_localizations/flutter_localizations.dart';
|
|
import 'package:flutter_quill/flutter_quill.dart' hide Text;
|
|
|
|
class MyApp extends StatefulWidget {
|
|
const MyApp({super.key});
|
|
|
|
@override
|
|
State<MyApp> createState() => _MyAppState();
|
|
}
|
|
|
|
class _MyAppState extends State<MyApp> {
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
SemanticsBinding.instance.ensureSemantics(); // ✅ Safe here
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp.router(
|
|
title: 'TRIP MANAGEMENT',
|
|
routerConfig: router,
|
|
debugShowCheckedModeBanner: false,
|
|
localizationsDelegates: const [
|
|
GlobalMaterialLocalizations.delegate,
|
|
GlobalWidgetsLocalizations.delegate,
|
|
GlobalCupertinoLocalizations.delegate,
|
|
FlutterQuillLocalizations.delegate, // ✅ Needed for flutter_quill
|
|
],
|
|
supportedLocales: const [
|
|
Locale('en'), // ✅ Add more if needed
|
|
],
|
|
);
|
|
}
|
|
}
|