Skip to content

Commit

Permalink
feat(app): デバッグ機能へのアクセスアイコン表示をデバッグ実行時のみに制限
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsutakein committed Jul 10, 2024
1 parent 70138d7 commit d6e4072
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions apps/app/lib/ui/home_page.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:cores_designsystem/theme_extensions.dart';
import 'package:features_github_repository/ui.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_app/gen/l10n/l10n.dart';
import 'package:flutter_app/ui/provider/navigator_provider.dart';
Expand All @@ -23,12 +24,13 @@ class HomePage extends ConsumerWidget {
appBar: AppBar(
title: Text(l.appBar),
actions: [
IconButton(
onPressed: () => navigator.goDebugPage(context),
icon: const Icon(
Icons.construction,
if (kDebugMode)
IconButton(
onPressed: () => navigator.goDebugPage(context),
icon: const Icon(
Icons.construction,
),
),
),
IconButton(
onPressed: () => navigator.goWebPage(context),
icon: const Icon(
Expand Down

0 comments on commit d6e4072

Please sign in to comment.