mirror of
https://github.com/ALEZ-DEV/Babylonia-terminal.git
synced 2025-12-16 17:38:51 +00:00
add dragable window
This commit is contained in:
parent
4122d9f84f
commit
434e37e3f2
@ -110,7 +110,9 @@ class _MenuState extends State<Menu> {
|
|||||||
|
|
||||||
return ChangeNotifierProvider(
|
return ChangeNotifierProvider(
|
||||||
create: (context) => Game(),
|
create: (context) => Game(),
|
||||||
child: Scaffold(
|
child: Stack(
|
||||||
|
children: [
|
||||||
|
Scaffold(
|
||||||
drawer: Drawer(
|
drawer: Drawer(
|
||||||
child: ListView(
|
child: ListView(
|
||||||
children: items,
|
children: items,
|
||||||
@ -166,6 +168,17 @@ class _MenuState extends State<Menu> {
|
|||||||
),
|
),
|
||||||
body: Screens.getCurrent(_selectedIndex),
|
body: Screens.getCurrent(_selectedIndex),
|
||||||
),
|
),
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.only(right: 115.0, left: 60.0),
|
||||||
|
child: GestureDetector(
|
||||||
|
onPanStart: (_) => window.drag(),
|
||||||
|
child: const SizedBox(
|
||||||
|
height: 60,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user