mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 04:32:32 +00:00
* [Icon] Removed alpha channel from icon * [Sonarr] Fixed toast for season monitoring toggle * [Settings] Completely redesign, prepping for user configurable options * [Browsers] Ability to set which browser * [Settings/Modules] Long pressing 'Open Links In...' would open LunaSea website * [Navigation Bar] Fixed title regression * [Sliver AppBar] Defaults to collapsed, pull down to view * [Sliver AppBar] Left align title * [Settings/Calendar] Ability to configure starting day and starting size * [Settings] Added headers * [Settings] Cleaned folder structure of widgets * [Calendar] Added option to disable specific modules * [Theme] added AMOLED black theme * [Android] Build Configuration for Android (#198) * [Android] Implemented WIP android build configuration * [Android] Added splash, icons, dynamic platform-specific text * [Android] Added signing configuration, updated minimum version to Android 7.0 * [README] Updated README to reflect Android building * [README] Added stub Google Play shield * [README] Reordered shields
28 lines
734 B
Dart
28 lines
734 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class LSRefreshIndicator extends StatefulWidget {
|
|
final Widget child;
|
|
final Function onRefresh;
|
|
final GlobalKey<RefreshIndicatorState> refreshKey;
|
|
|
|
LSRefreshIndicator({
|
|
@required this.child,
|
|
@required this.onRefresh,
|
|
@required this.refreshKey,
|
|
});
|
|
|
|
@override
|
|
State<StatefulWidget> createState() => _State();
|
|
}
|
|
|
|
class _State extends State<LSRefreshIndicator> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return RefreshIndicator(
|
|
key: widget.refreshKey,
|
|
backgroundColor: Theme.of(context).primaryColor,
|
|
onRefresh: widget.onRefresh,
|
|
child: widget.child,
|
|
);
|
|
}
|
|
} |