-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improved some todo preview styles, animations, and functionality
- add close, full-screen, and windowed dialog previews - add full-screen and windowed transformation animations! - add window transformation state
- Loading branch information
Showing
6 changed files
with
436 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
lib/screens/home/blocs/dialog_builder/dialog_builder_bloc.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import 'package:bloc/bloc.dart'; | ||
import 'package:meta/meta.dart'; | ||
|
||
part 'dialog_builder_event.dart'; | ||
part 'dialog_builder_state.dart'; | ||
|
||
class DialogBuilderBloc extends Bloc<DialogBuilderEvent, DialogBuilderState> { | ||
DialogBuilderBloc() : super(DialogBuilderInitial()) { | ||
on<UpdateDialogScreenSizeEvent>(_dialogUpdateScreenSize); | ||
} | ||
|
||
void _dialogUpdateScreenSize(UpdateDialogScreenSizeEvent event, Emitter<DialogBuilderState> emit) { | ||
emit(DialogBuilderLoaded(isMinimized: event.isMinimized)); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
lib/screens/home/blocs/dialog_builder/dialog_builder_event.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
part of 'dialog_builder_bloc.dart'; | ||
|
||
@immutable | ||
sealed class DialogBuilderEvent {} | ||
|
||
final class UpdateDialogScreenSizeEvent extends DialogBuilderEvent { | ||
final bool isMinimized; | ||
|
||
UpdateDialogScreenSizeEvent({required this.isMinimized}); | ||
} |
18 changes: 18 additions & 0 deletions
18
lib/screens/home/blocs/dialog_builder/dialog_builder_state.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
part of 'dialog_builder_bloc.dart'; | ||
|
||
@immutable | ||
sealed class DialogBuilderState { | ||
final bool isMinimized; | ||
|
||
const DialogBuilderState({ | ||
required this.isMinimized, | ||
}); | ||
} | ||
|
||
final class DialogBuilderInitial extends DialogBuilderState { | ||
const DialogBuilderInitial({super.isMinimized = true}); | ||
} | ||
|
||
final class DialogBuilderLoaded extends DialogBuilderState { | ||
const DialogBuilderLoaded({required super.isMinimized}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.