Skip to content

Commit

Permalink
Improve page transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
kra-mo committed Sep 15, 2024
1 parent 61b7aad commit 174037c
Showing 1 changed file with 21 additions and 22 deletions.
43 changes: 21 additions & 22 deletions lib/editor_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1196,28 +1196,27 @@ class _SlyEditorPageState extends State<SlyEditorPage> {
),
child: Container(
color: Colors.grey.shade900,
child: Column(
crossAxisAlignment:
CrossAxisAlignment.end,
children: _selectedPageIndex == 3 ||
_selectedPageIndex == 4
? [
SlyDragWindowBox(
child: SlyTitleBarBox(
child: Container(),
),
),
Expanded(child: controlsWidget),
]
: [
SlyDragWindowBox(
child: SlyTitleBarBox(
child: Container(),
),
),
Expanded(child: controlsWidget),
toolbar,
],
child: AnimatedSize(
duration: const Duration(
milliseconds: 300,
),
curve: Curves.easeOutQuint,
child: Column(
crossAxisAlignment:
CrossAxisAlignment.end,
children: [
SlyDragWindowBox(
child: SlyTitleBarBox(
child: Container(),
),
),
Expanded(child: controlsWidget),
_selectedPageIndex != 3 &&
_selectedPageIndex != 4
? toolbar
: Container(),
],
),
),
),
),
Expand Down

0 comments on commit 174037c

Please sign in to comment.