Skip to content

Commit

Permalink
chore: resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixit99 committed Dec 27, 2024
1 parent 6994f68 commit 612c995
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/src/features/main/theme/bloc/theme_bloc.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// lib/src/features/main/theme/bloc/theme_bloc.dart
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
import 'package:flutter/material.dart';
import 'package:fluent_ui/fluent_ui.dart';
import 'package:gui/src/features/main/theme/bloc/theme_state.dart';
import '../../../../core/services/shared_preferences_service.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/src/features/main/theme/bloc/theme_event.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class InitializeThemeEvent extends ThemeEvent {}

class ChangeTheme extends ThemeEvent {
const ChangeTheme(this.themeData);
final ThemeData themeData;
final FluentThemeData themeData;

@override
List<Object> get props => [themeData];
Expand Down
10 changes: 5 additions & 5 deletions lib/src/features/main/theme/bloc/theme_state.dart
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// lib/src/features/main/theme/bloc/theme_state.dart
import 'package:equatable/equatable.dart';
import 'package:flutter/material.dart';
import 'package:fluent_ui/fluent_ui.dart';

class ThemeState extends Equatable {
const ThemeState({
required this.themeData,
});
final ThemeData themeData;
final FluentThemeData themeData;

static ThemeData lightTheme = ThemeData(
static FluentThemeData lightTheme = FluentThemeData(
brightness: Brightness.light,
);
static ThemeData darkTheme = ThemeData.dark();
static FluentThemeData darkTheme = FluentThemeData.dark();

ThemeState copyWith({ThemeData? themeData}) {
ThemeState copyWith({FluentThemeData? themeData}) {
return ThemeState(
themeData: themeData ?? this.themeData,
);
Expand Down

0 comments on commit 612c995

Please sign in to comment.