mirror of
https://github.com/ALEZ-DEV/Babylonia-terminal.git
synced 2025-12-16 09:28:53 +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(
|
||||
create: (context) => Game(),
|
||||
child: Scaffold(
|
||||
child: Stack(
|
||||
children: [
|
||||
Scaffold(
|
||||
drawer: Drawer(
|
||||
child: ListView(
|
||||
children: items,
|
||||
@ -166,6 +168,17 @@ class _MenuState extends State<Menu> {
|
||||
),
|
||||
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