Skip to content

Commit

Permalink
issue-131 fixed app bar color after update
Browse files Browse the repository at this point in the history
  • Loading branch information
gennadyterekhov committed Jun 11, 2024
1 parent 8a34fff commit e94d5de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/layers/presentation/widgets/components/app_bar.dart
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:the_elder_scrolls_alchemy_client/layers/data/resources/constant.dart';
import 'package:the_elder_scrolls_alchemy_client/layers/presentation/widgets/navigation/back_button.dart';
import 'package:the_elder_scrolls_alchemy_client/layers/state_management/app_state.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:the_elder_scrolls_alchemy_client/router.dart';

class AlchemyAppBar extends StatelessWidget implements PreferredSizeWidget {
const AlchemyAppBar({Key? key, required this.gameName}) : super(key: key);
final String gameName;

@override
Size get preferredSize => Size(20.0, 50.0);
Size get preferredSize => const Size(20.0, 50.0);

@override
Widget build(
Expand Down Expand Up @@ -45,7 +44,8 @@ class AlchemyAppBar extends StatelessWidget implements PreferredSizeWidget {
children: [homeLink, toggleSearchInkWell],
);
return AppBar(
leading: CustomBackButton(),
backgroundColor: const Color(0xffa5d6a7),
leading: const CustomBackButton(),
automaticallyImplyLeading: false,
title: titleLine,
);
Expand Down
4 changes: 2 additions & 2 deletions lib/layers/presentation/widgets/material_app_with_locale.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:the_elder_scrolls_alchemy_client/layers/data/resources/constant.dart';
import 'package:the_elder_scrolls_alchemy_client/layers/state_management/app_state.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';

class MaterialAppWithLocale extends StatelessWidget {
const MaterialAppWithLocale(this.home, {super.key});
Expand Down

0 comments on commit e94d5de

Please sign in to comment.