dartlangeditorflutterflutter-appsflutter-examplesflutter-packageflutter-widgetquillquill-deltaquilljsreactquillrich-textrich-text-editorwysiwygwysiwyg-editor
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.2 KiB
43 lines
1.2 KiB
1 year ago
|
import 'package:flutter/material.dart';
|
||
|
import 'package:flutter_localizations/flutter_localizations.dart';
|
||
|
import 'package:flutter_quill/translations.dart';
|
||
|
|
||
|
import 'pages/home_page.dart';
|
||
|
|
||
|
void main() {
|
||
|
WidgetsFlutterBinding.ensureInitialized();
|
||
|
runApp(const MyApp());
|
||
|
}
|
||
|
|
||
|
class MyApp extends StatelessWidget {
|
||
|
const MyApp({super.key});
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return MaterialApp(
|
||
|
debugShowCheckedModeBanner: false,
|
||
|
title: 'Quill Demo',
|
||
|
theme: ThemeData(
|
||
|
primarySwatch: Colors.blue,
|
||
|
visualDensity: VisualDensity.adaptivePlatformDensity,
|
||
|
useMaterial3: true,
|
||
|
brightness: Brightness.light,
|
||
|
),
|
||
|
darkTheme: ThemeData(
|
||
|
primarySwatch: Colors.blue,
|
||
|
visualDensity: VisualDensity.adaptivePlatformDensity,
|
||
|
useMaterial3: true,
|
||
|
brightness: Brightness.dark,
|
||
|
),
|
||
|
localizationsDelegates: const [
|
||
|
GlobalMaterialLocalizations.delegate,
|
||
|
GlobalWidgetsLocalizations.delegate,
|
||
|
GlobalCupertinoLocalizations.delegate,
|
||
|
FlutterQuillLocalizations.delegate,
|
||
|
],
|
||
|
supportedLocales: FlutterQuillLocalizations.supportedLocales,
|
||
|
home: const HomePage(),
|
||
|
);
|
||
|
}
|
||
|
}
|