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:
parent
b298ceb643
commit
6e79060260
1 changed files with 501 additions and 283 deletions
|
|
@ -70,13 +70,17 @@ class _HomePageState extends State<HomePage> {
|
|||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
key: _scaffoldKey,
|
||||
extendBodyBehindAppBar: true,
|
||||
extendBodyBehindAppBar: PlatformExtension.isDesktopOrWeb,
|
||||
drawer: _buildDrawer(context),
|
||||
appBar: AppBar(
|
||||
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
|
||||
title: Text('AppFlowy Editor'),
|
||||
),
|
||||
body: SafeArea(child: _buildBody(context)),
|
||||
floatingActionButton: _buildFloatingActionButton(context),
|
||||
floatingActionButtonLocation: PlatformExtension.isMobile
|
||||
? FloatingActionButtonLocation.startTop
|
||||
: FloatingActionButtonLocation.endFloat,
|
||||
floatingActionButton: PlatformExtension.isDesktopOrWeb
|
||||
? _buildFloatingActionButton(context)
|
||||
: null,
|
||||
floatingActionButtonLocation: FloatingActionButtonLocation.endFloat,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue