slight cleanups
This commit is contained in:
parent
23046f08a9
commit
00f22d46b7
11 changed files with 24 additions and 33 deletions
|
|
@ -81,11 +81,11 @@ class const SettingsPage({super.key}) extends ConsumerWidget {
|
|||
index: match.$1.$2,
|
||||
scrollController: scrollController,
|
||||
alignment: 0.5,
|
||||
duration: (_) => .new(milliseconds: 700),
|
||||
duration: (_) => Durations.extralong1,
|
||||
curve: (_) => Curves.easeInOut,
|
||||
);
|
||||
highlightedMatch.value = match.$1;
|
||||
await Future.delayed(.new(seconds: 1), () {
|
||||
await Future.delayed(Durations.extralong4, () {
|
||||
if (highlightedMatch.value == match.$1) {
|
||||
highlightedMatch.value = null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,10 +31,10 @@ class const SettingsCategoryPage(
|
|||
index: initialHighlight!,
|
||||
scrollController: scrollController,
|
||||
alignment: 0.5,
|
||||
duration: (_) => .new(milliseconds: 700),
|
||||
duration: (_) => Durations.extralong1,
|
||||
curve: (_) => Curves.easeInOut,
|
||||
);
|
||||
timer = Timer(.new(seconds: 1), () {
|
||||
timer = Timer(Durations.extralong4, () {
|
||||
highlight.value = null;
|
||||
});
|
||||
listController.value.removeListener(listener);
|
||||
|
|
|
|||
Loading…
Reference in a new issue