* opt: sized

* fix: self send

* feat: ctrl enter to send

* opt: checked

* opt: download notifier

* opt: Future.syncValue

* mod: account

* mod: loading state

* opt: DebounceStreamMixin

* opt: report

* opt: enum map

* opt: file handler

* opt: dyn color

* opt: Uint8List subview

* opt: FileExt

* opt: computeLuminance

* opt: isNullOrEmpty

* opt: Get context

* update [skip ci]

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>

* opt dynamicColor [skip ci]

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>

* fixes [skip ci]

* update

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>

* update

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>

---------

Signed-off-by: My-Responsitories <107370289+My-Responsitories@users.noreply.github.com>
Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
My-Responsitories
2025-12-17 17:01:10 +08:00
committed by GitHub
parent 02e0d34127
commit ce5e85e64b
87 changed files with 707 additions and 646 deletions

View File

@@ -3,7 +3,7 @@ import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
sealed class LoadingState<T> {
const LoadingState();
factory LoadingState.loading() = Loading;
factory LoadingState.loading() => const Loading._internal();
bool get isSuccess => this is Success<T>;
@@ -23,10 +23,6 @@ sealed class LoadingState<T> {
class Loading extends LoadingState<Never> {
const Loading._internal();
static const Loading _instance = Loading._internal();
factory Loading() => _instance;
@override
String toString() {
return 'ApiException: loading';
@@ -42,7 +38,7 @@ class Success<T> extends LoadingState<T> {
if (identical(this, other)) {
return true;
}
if (other is Success) {
if (other is Success<T>) {
return response == other.response;
}
return false;
@@ -63,13 +59,13 @@ class Error extends LoadingState<Never> {
return true;
}
if (other is Error) {
return errMsg == other.errMsg;
return errMsg == other.errMsg && code == other.code;
}
return false;
}
@override
int get hashCode => errMsg.hashCode;
int get hashCode => Object.hash(errMsg, code);
@override
String toString() {