2023-07-26 17:42:11 -04:00
|
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
2023-07-26 14:20:29 -04:00
|
|
|
|
2023-08-17 18:10:24 -04:00
|
|
|
enum GlobalConnectionState {
|
2023-01-10 21:04:18 -05:00
|
|
|
detached,
|
|
|
|
detaching,
|
|
|
|
attaching,
|
|
|
|
attachedWeak,
|
|
|
|
attachedGood,
|
|
|
|
attachedStrong,
|
|
|
|
fullyAttached,
|
|
|
|
overAttached,
|
|
|
|
}
|
|
|
|
|
2023-09-30 21:00:22 -04:00
|
|
|
final globalConnectionState =
|
|
|
|
StateController<GlobalConnectionState>(GlobalConnectionState.detached);
|
2023-09-30 21:28:45 -04:00
|
|
|
final globalConnectionStateProvider = StateNotifierProvider<
|
2023-09-30 21:00:22 -04:00
|
|
|
StateController<GlobalConnectionState>,
|
|
|
|
GlobalConnectionState>((ref) => globalConnectionState);
|