1
0
mirror of https://github.com/GitJournal/GitJournal.git synced 2025-07-26 12:46:43 +08:00

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

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