mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 12:42:34 +00:00
* chore(packages): Added pedantic package to enforce linting and styling * feat(lunasea): Enforce effective dart styling * Comment and format colours class * Localize additional classes in Dashboard, cleanup additional code * chore(lunasea): Major refactor by running dartfmt on the entire codebase, added widget return for page routers * Additional work on conforming to effective dart style * fix(share_plus): Roll back share_plus package to 2.0.0 to support iOS 12 or lower * chore(lunasea): Fix remaining enabled analysis warnings
16 lines
437 B
Dart
16 lines
437 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class LunaRefreshIndicator extends RefreshIndicator {
|
|
LunaRefreshIndicator({
|
|
GlobalKey<RefreshIndicatorState> key,
|
|
@required BuildContext context,
|
|
@required Future<void> Function() onRefresh,
|
|
@required Widget child,
|
|
}) : super(
|
|
key: key,
|
|
backgroundColor: Theme.of(context).primaryColor,
|
|
onRefresh: onRefresh,
|
|
child: child,
|
|
);
|
|
}
|