Initial commit
This commit is contained in:
parent
32e425f961
commit
e94d583b8b
67 changed files with 2516 additions and 698 deletions
11
lib/models/decorations.dart
Normal file
11
lib/models/decorations.dart
Normal file
|
@ -0,0 +1,11 @@
|
|||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
import 'package:yaru/yaru.dart';
|
||||
part "decorations.freezed.dart";
|
||||
|
||||
@freezed
|
||||
class Decorations with _$Decorations {
|
||||
const factory Decorations({
|
||||
required List<YaruWindowControlType> leading,
|
||||
required List<YaruWindowControlType> trailing,
|
||||
}) = _Decorations;
|
||||
}
|
13
lib/models/package.dart
Normal file
13
lib/models/package.dart
Normal file
|
@ -0,0 +1,13 @@
|
|||
import 'package:flutter/widgets.dart';
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
part "package.freezed.dart";
|
||||
|
||||
@freezed
|
||||
class Package with _$Package {
|
||||
const factory Package({
|
||||
required String name,
|
||||
required String author,
|
||||
required Color color,
|
||||
required Widget icon,
|
||||
}) = _Package;
|
||||
}
|
8
lib/models/tab.dart
Normal file
8
lib/models/tab.dart
Normal file
|
@ -0,0 +1,8 @@
|
|||
import 'package:flutter/widgets.dart';
|
||||
|
||||
abstract class TabPage extends Widget {
|
||||
const TabPage({super.key});
|
||||
|
||||
String get title;
|
||||
IconData get icon;
|
||||
}
|
Reference in a new issue