Compare commits

..

1 Commits

Author SHA1 Message Date
chen08209
4370df6a61 Add sqlite store
Optimize android quick action

Optimize backup and restore

Optimize more details
2026-01-26 18:51:44 +08:00
10 changed files with 67 additions and 18 deletions

View File

@@ -1,13 +1,3 @@
## v0.8.91
- Fix windows some issues
- Optimize overwrite handle
- Optimize access control page
- Optimize some details
## v0.8.90
- Fix android tile service

View File

@@ -532,9 +532,6 @@ func handleDelFile(path string, result ActionResult) {
}
func handleSetupConfig(bytes []byte) string {
if !isInit {
return "not initialized"
}
var params = defaultSetupParams()
err := UnmarshalJson(bytes, params)
if err != nil {

View File

@@ -779,6 +779,7 @@ extension CoreControllerExt on AppController {
} else {
await updateGroups();
}
_ref.read(coreInitProvider.notifier).value = true;
}
Future<void> _connectCore() async {

View File

@@ -159,6 +159,14 @@ class Init extends _$Init with AutoDisposeNotifierMixin {
}
}
@Riverpod(keepAlive: true)
class CoreInit extends _$CoreInit with AutoDisposeNotifierMixin {
@override
bool build() {
return false;
}
}
@Riverpod(keepAlive: true)
class CurrentPageLabel extends _$CurrentPageLabel
with AutoDisposeNotifierMixin {

View File

@@ -857,6 +857,58 @@ abstract class _$Init extends $Notifier<bool> {
}
}
@ProviderFor(CoreInit)
const coreInitProvider = CoreInitProvider._();
final class CoreInitProvider extends $NotifierProvider<CoreInit, bool> {
const CoreInitProvider._()
: super(
from: null,
argument: null,
retry: null,
name: r'coreInitProvider',
isAutoDispose: false,
dependencies: null,
$allTransitiveDependencies: null,
);
@override
String debugGetCreateSourceHash() => _$coreInitHash();
@$internal
@override
CoreInit create() => CoreInit();
/// {@macro riverpod.override_with_value}
Override overrideWithValue(bool value) {
return $ProviderOverride(
origin: this,
providerOverride: $SyncValueProvider<bool>(value),
);
}
}
String _$coreInitHash() => r'db77b825e2b198311ff7753a078ce060aaef9c53';
abstract class _$CoreInit extends $Notifier<bool> {
bool build();
@$mustCallSuper
@override
void runBuild() {
final created = build();
final ref = this.ref as $Ref<bool, bool>;
final element =
ref.element
as $ClassProviderElement<
AnyNotifier<bool, bool>,
bool,
Object?,
Object?
>;
element.handleValue(ref, created);
}
}
@ProviderFor(CurrentPageLabel)
const currentPageLabelProvider = CurrentPageLabelProvider._();

View File

@@ -71,7 +71,8 @@ class _StartButtonState extends ConsumerState<StartButton>
final hasProfile = ref.watch(
profilesProvider.select((state) => state.isNotEmpty),
);
if (!hasProfile) {
final isInit = ref.watch(coreInitProvider);
if (!hasProfile || !isInit) {
return Container();
}
return Theme(

View File

@@ -44,7 +44,7 @@ class FloatingActionButtonExtendedBuilder extends StatelessWidget {
@override
Widget build(BuildContext context) {
final isExtended =
CommonScaffoldFabExtendedProvider.of(context)?.isExtended ?? true;
CommonScaffoldFabExtendedProvider.of(context)?.isExtended ?? false;
return builder(isExtended);
}
}

View File

@@ -38,7 +38,7 @@ class CommonFloatingActionButton extends StatelessWidget {
curve: Curves.easeOutBack,
child: AnimatedOpacity(
duration: midDuration,
opacity: isExtended ? 1.0 : 0.4,
opacity: isExtended ? 1.0 : 0.0,
curve: Curves.linear,
child: isExtended
? Padding(

View File

@@ -50,7 +50,7 @@ class CommonScaffold extends StatefulWidget {
class CommonScaffoldState extends State<CommonScaffold> {
late final ValueNotifier<AppBarState> _appBarState;
final ValueNotifier<bool> _loadingNotifier = ValueNotifier(false);
final ValueNotifier<bool> _isFabExtendedNotifier = ValueNotifier(true);
final ValueNotifier<bool> _isFabExtendedNotifier = ValueNotifier(false);
final ValueNotifier<List<String>> _keywordsNotifier = ValueNotifier([]);
final _textController = TextEditingController();

View File

@@ -1,7 +1,7 @@
name: fl_clash
description: A multi-platform proxy client based on ClashMeta, simple and easy to use, open-source and ad-free.
publish_to: 'none'
version: 0.8.92+2026020201
version: 0.8.92+2026012603
environment:
sdk: '>=3.8.0 <4.0.0'