mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 04:32:32 +00:00
17 lines
493 B
Dart
17 lines
493 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,
|
|
color: Theme.of(context).colorScheme.secondary,
|
|
onRefresh: onRefresh,
|
|
child: child,
|
|
);
|
|
}
|