Files
MWClash/lib/models/widget.dart
chen08209 c6266b7917 Add windows storage corruption detection
Fix core crash caused by windows resource manager restart

Optimize logs, requests, access to pages

Fix macos bypass domain issues
2025-02-09 16:23:40 +08:00

30 lines
722 B
Dart

import 'package:flutter/widgets.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
part 'generated/widget.freezed.dart';
@freezed
class ActivateState with _$ActivateState {
const factory ActivateState({
required bool active,
}) = _ActivateState;
}
@freezed
class CommonMessage with _$CommonMessage {
const factory CommonMessage({
required String id,
required String text,
@Default(Duration(seconds: 3)) Duration duration,
}) = _CommonMessage;
}
@freezed
class CommonAppBarState with _$CommonAppBarState {
const factory CommonAppBarState({
@Default([]) List<Widget> actions,
Function(String)? onSearch,
@Default(false) bool searching,
}) = _CommonAppBarState;
}