Skip to content

Commit

Permalink
Improve search and settings dialog transition
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Oct 12, 2024
1 parent 2ac89be commit da23a2e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/lib/actions/search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class SearchAction extends Action<SearchIntent> {
position: Tween<Offset>(
begin: const Offset(0, -0.5),
end: Offset.zero,
).animate(animation),
).chain(CurveTween(curve: Curves.easeOutQuart)).animate(animation),
child: child,
);
},
Expand Down
4 changes: 2 additions & 2 deletions app/lib/actions/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ Future<void> openSettings(BuildContext context) => showGeneralDialog<void>(
),
barrierDismissible: true,
barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel,
transitionDuration: const Duration(milliseconds: 100),
transitionDuration: const Duration(milliseconds: 200),
transitionBuilder: (context, animation, secondaryAnimation, child) {
// Animate the dialog from bottom to center
return SlideTransition(
position: Tween<Offset>(
begin: const Offset(0, 1),
end: Offset.zero,
).animate(animation),
).chain(CurveTween(curve: Curves.easeOutQuart)).animate(animation),
child: child,
);
},
Expand Down
1 change: 0 additions & 1 deletion docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import remarkGemoji from "remark-gemoji";

// https://astro.build/config
export default defineConfig({
outDir: "./build",
site: "https://butterfly.linwood.dev",
markdown: {
remarkPlugins: [remarkHeadingID, remarkGemoji],
Expand Down
1 change: 1 addition & 0 deletions metadata/en-US/changelogs/118.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* Add autofocus to add dialog search bar
* Add transition when opening add dialog
* Add size transition to toolbar
* Improve search and settings dialog transition
* Change color toolbar to not have the full width
* Fix pasting with label tool replaces text instead of appending
* Fix unstable sort algorithm if layer is the same
Expand Down

0 comments on commit da23a2e

Please sign in to comment.