Skip to content

Commit

Permalink
Revert "accessibility: Add semantics to CustomDrawerIcon"
Browse files Browse the repository at this point in the history
To fix custom drawer icon cannot shown on general settings.

This reverts commit 5a29289.
  • Loading branch information
calcitem committed Apr 16, 2024
1 parent 4982352 commit b4e687d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,16 +394,10 @@ class AppearanceSettingsPage extends StatelessWidget {
resizeToAvoidBottomInset: false,
backgroundColor: AppTheme.lightBackgroundColor,
appBar: AppBar(
leading: Semantics(
label: S.of(context).menu,
child: CustomDrawerIcon.of(context)?.drawerIcon,
),
title: Semantics(
header: true,
child: Text(
S.of(context).appearance,
style: AppTheme.appBarTheme.titleTextStyle,
),
leading: CustomDrawerIcon.of(context)?.drawerIcon,
title: Text(
S.of(context).appearance,
style: AppTheme.appBarTheme.titleTextStyle,
),
),
body: SettingsList(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,7 @@ class GeneralSettingsPage extends StatelessWidget {
resizeToAvoidBottomInset: false,
backgroundColor: AppTheme.lightBackgroundColor,
appBar: AppBar(
leading: Semantics(
label: S.of(context).menu,
child: CustomDrawerIcon.of(context)?.drawerIcon,
),
leading: CustomDrawerIcon.of(context)?.drawerIcon,
title: Text(
S.of(context).generalSettings,
style: AppTheme.appBarTheme.titleTextStyle,
Expand Down
5 changes: 1 addition & 4 deletions src/ui/flutter_app/lib/misc/about_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,7 @@ class AboutPage extends StatelessWidget {
resizeToAvoidBottomInset: false,
backgroundColor: AppTheme.aboutPageBackgroundColor,
appBar: AppBar(
leading: Semantics(
label: S.of(context).menu,
child: CustomDrawerIcon.of(context)?.drawerIcon,
),
leading: CustomDrawerIcon.of(context)?.drawerIcon,
title: Text(
S.of(context).about,
style: AppTheme.appBarTheme.titleTextStyle,
Expand Down
5 changes: 1 addition & 4 deletions src/ui/flutter_app/lib/misc/how_to_play_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ class HowToPlayScreen extends StatelessWidget {
appBar: AppBar(
elevation: 0.0,
backgroundColor: DB().colorSettings.darkBackgroundColor,
leading: Semantics(
label: S.of(context).menu,
child: CustomDrawerIcon.of(context)?.drawerIcon,
),
leading: CustomDrawerIcon.of(context)?.drawerIcon,
title: Text(
S.of(context).howToPlay,
style: AppTheme.helpTextStyle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,7 @@ class RuleSettingsPage extends StatelessWidget {
resizeToAvoidBottomInset: false,
backgroundColor: AppTheme.lightBackgroundColor,
appBar: AppBar(
leading: Semantics(
label: S.of(context).menu,
child: CustomDrawerIcon.of(context)?.drawerIcon,
),
leading: CustomDrawerIcon.of(context)?.drawerIcon,
title: Text(
S.of(context).ruleSettings,
style: AppTheme.appBarTheme.titleTextStyle,
Expand Down

0 comments on commit b4e687d

Please sign in to comment.