mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 23:18:16 -07:00
chore: Small usability changes and removed "adaptive refresh"
This commit is contained in:
parent
ed3d51bfed
commit
e9f32f522b
2 changed files with 16 additions and 12 deletions
|
|
@ -1,10 +1,12 @@
|
|||
import 'package:fladder/util/adaptive_layout/adaptive_layout.dart';
|
||||
import 'package:fladder/util/refresh_state.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
||||
import 'package:fladder/util/adaptive_layout/adaptive_layout.dart';
|
||||
import 'package:fladder/util/refresh_state.dart';
|
||||
|
||||
class PullToRefresh extends ConsumerStatefulWidget {
|
||||
final GlobalKey<RefreshIndicatorState>? refreshKey;
|
||||
final double? displacement;
|
||||
|
|
@ -68,7 +70,7 @@ class _PullToRefreshState extends ConsumerState<PullToRefresh> {
|
|||
return KeyEventResult.ignored;
|
||||
},
|
||||
child: widget.onRefresh != null
|
||||
? RefreshIndicator.adaptive(
|
||||
? RefreshIndicator(
|
||||
displacement: widget.displacement ?? 80 + MediaQuery.of(context).viewPadding.top,
|
||||
key: refreshKey,
|
||||
onRefresh: widget.onRefresh!,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue