Skip to content
This repository was archived by the owner on Sep 12, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions lib/app/home_shell.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ class _HomeShellState extends State<HomeShell> {
final l10n = AppLocalizations.of(context)!;
return Scaffold(
body: LiquidGlassView(
backgroundWidget: Image.asset(
AppConstants.wallpaperAsset,
fit: BoxFit.cover,
errorBuilder: (context, error, stackTrace) =>
const ColoredBox(color: Color(0xFF1A1A2E)),
backgroundWidget: Opacity(
opacity: AppConstants.wallpaperOpacity,
child: Image.asset(
AppConstants.wallpaperAsset,
fit: BoxFit.cover,
errorBuilder: (context, error, stackTrace) =>
const ColoredBox(color: Color(0xFF1A1A2E)),
),
),
realTimeCapture: false,
child: Stack(
Expand Down
6 changes: 6 additions & 0 deletions lib/core/constants/app_constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,10 @@ class AppConstants {
/// `assets/images/` 配下の壁紙画像を指定する。変更時は `pubspec.yaml` の
/// `flutter.assets` も合わせて更新すること。
static const String wallpaperAsset = 'assets/images/wallpaper3.jpg';

/// 壁紙の不透明度 (0.0: 透明 〜 1.0: 不透明)。
///
/// `HomeShell` の背景画像に適用される。値を下げると壁紙が薄くなり、
/// Liquid Glass の視認性が上がる。
static const double wallpaperOpacity = 1.0;
}