fix(flutter): increase watermark opacity and apply to settings

This commit is contained in:
ospab 2026-07-10 00:09:55 +03:00
parent 22c2d5edd8
commit eda2a0eba7
2 changed files with 29 additions and 13 deletions

View File

@ -481,7 +481,7 @@ class _HomeScreenState extends State<HomeScreen> with TickerProviderStateMixin {
children: [
Positioned.fill(
child: Opacity(
opacity: 0.03,
opacity: 0.1,
child: Center(
child: Image.asset(
'assets/logo.png',

View File

@ -555,20 +555,34 @@ class _SettingsScreenState extends State<SettingsScreen> {
),
],
),
body: ListView(
padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 16),
body: Stack(
children: [
const Text('PROFILES', style: TextStyle(color: Colors.white54, fontSize: 13, fontWeight: FontWeight.bold, letterSpacing: 1.0)),
const SizedBox(height: 16),
if (_profiles.isEmpty)
Center(
child: Padding(
padding: const EdgeInsets.all(32.0),
child: Text('Create a new profile', style: TextStyle(color: Colors.white.withOpacity(0.5), fontSize: 18)),
Positioned.fill(
child: Opacity(
opacity: 0.1,
child: Center(
child: Image.asset(
'assets/logo.png',
width: MediaQuery.of(context).size.shortestSide * 0.6,
color: Colors.white,
),
),
)
else
..._buildProfileCards(),
),
),
ListView(
padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 16),
children: [
const Text('PROFILES', style: TextStyle(color: Colors.white54, fontSize: 13, fontWeight: FontWeight.bold, letterSpacing: 1.0)),
const SizedBox(height: 16),
if (_profiles.isEmpty)
Center(
child: Padding(
padding: const EdgeInsets.all(32.0),
child: Text('Create a new profile', style: TextStyle(color: Colors.white54, fontSize: 18)),
),
)
else
..._buildProfileCards(),
const SizedBox(height: 32),
const Text('CLIENT SETTINGS', style: TextStyle(color: Colors.white54, fontSize: 13, fontWeight: FontWeight.bold, letterSpacing: 1.0)),
@ -674,6 +688,8 @@ class _SettingsScreenState extends State<SettingsScreen> {
const SizedBox(height: 40),
],
),
],
),
);
}