feat: support mobile drag selection (#209)

* feat: add handler for mobile selection widget

* feat: support dragging handler to update selection

* chore: format code

* feat: support dragging the cursor on mobile platform

* feat: optimize the scroll service
This commit is contained in:
Lucas.Xu 2023-06-20 10:26:22 +08:00 • committed by GitHub
commit 6e79060260
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return const MaterialApp(
return MaterialApp(
localizationsDelegates: [
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
@ -24,6 +24,10 @@ class MyApp extends StatelessWidget {
supportedLocales: [Locale('en', 'US')],
debugShowCheckedModeBanner: false,
home: MyHomePage(title: 'AppFlowyEditor Example'),
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
);
}
}