Skip to content

Commit

Permalink
feat: animation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasn committed Jun 4, 2024
1 parent 63c3e01 commit f106e6e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/argmaxinc/whisperkit",
"state" : {
"revision" : "3aa94e8c3950afdeaf916cb1da71e44f62bd2864",
"version" : "0.7.1"
"revision" : "aa4bb901c8a09c8b5320ff4bb9fe64a095614d4e",
"version" : "0.7.2"
}
}
],
Expand Down
3 changes: 1 addition & 2 deletions lib/widgets/journal/editor/editor_toolbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ToolbarWidget extends StatelessWidget {

@override
Widget build(BuildContext context) {
const duration = Duration(milliseconds: 400);
const duration = Duration(milliseconds: 200);
const curve = Curves.easeInOutQuint;
const height = 60.0;

Expand Down Expand Up @@ -52,7 +52,6 @@ class ToolbarWidget extends StatelessWidget {
.custom(
duration: duration,
curve: curve,
delay: const Duration(milliseconds: 100),
builder: (context, value, child) {
return SizedBox(
height: height * value,
Expand Down
5 changes: 3 additions & 2 deletions lib/widgets/journal/editor/editor_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ class EditorWidget extends ConsumerWidget {
final isFocused = entryState.value?.isFocused ?? false;

if (isFocused && isMobile) {
Timer(const Duration(milliseconds: 300), () {
Future.microtask(() {
Scrollable.ensureVisible(
context,
duration: const Duration(milliseconds: 300),
duration: const Duration(milliseconds: 200),
curve: Curves.easeInOutQuint,
);
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/argmaxinc/whisperkit",
"state" : {
"revision" : "3aa94e8c3950afdeaf916cb1da71e44f62bd2864",
"version" : "0.7.1"
"revision" : "aa4bb901c8a09c8b5320ff4bb9fe64a095614d4e",
"version" : "0.7.2"
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: lotti
description: Achieve your goals and keep your data private with Lotti.
publish_to: 'none'
version: 0.9.474+2545
version: 0.9.474+2549

msix_config:
display_name: LottiApp
Expand Down

0 comments on commit f106e6e

Please sign in to comment.