Disable Scroll to Refresh when sync mode set to Manual

This commit is contained in:
Vishesh Handa
2020-10-23 14:14:02 +02:00
parent 9ed9744306
commit a76e32d8d3

View File

@ -136,10 +136,16 @@ class _FolderViewState extends State<FolderView> {
),
body: Center(
child: Builder(
builder: (context) => RefreshIndicator(
child: Scrollbar(child: folderView),
builder: (context) {
var child = Scrollbar(child: folderView);
if (settings.remoteSyncFrequency == RemoteSyncFrequency.Manual) {
return child;
}
return RefreshIndicator(
child: child,
onRefresh: () async => _syncRepo(context),
),
);
},
),
),
extendBody: true,