fix:profile
This commit is contained in:
@@ -144,20 +144,32 @@ class ProfileScreen extends StatelessWidget {
|
||||
_StatTile('بریدن', '${s?.cuts ?? '—'}', Icons.bolt),
|
||||
_StatTile('دست حاکم', '${s?.hakemCount ?? '—'}', Icons.workspace_premium),
|
||||
];
|
||||
final grid = GridView.count(
|
||||
crossAxisCount: 2,
|
||||
shrinkWrap: true,
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
mainAxisSpacing: 10,
|
||||
crossAxisSpacing: 10,
|
||||
childAspectRatio: 2.2,
|
||||
children: tiles,
|
||||
final card = Container(
|
||||
padding: const EdgeInsets.all(10),
|
||||
decoration: BoxDecoration(
|
||||
gradient: const LinearGradient(
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
colors: [AppColors.lapisMid, AppColors.lapisLo],
|
||||
),
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
border: Border.all(color: AppColors.goldFaint),
|
||||
),
|
||||
child: GridView.count(
|
||||
crossAxisCount: 2,
|
||||
shrinkWrap: true,
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
mainAxisSpacing: 8,
|
||||
crossAxisSpacing: 8,
|
||||
childAspectRatio: 2.5,
|
||||
children: tiles,
|
||||
),
|
||||
);
|
||||
if (d.vip) return grid;
|
||||
if (d.vip) return card;
|
||||
|
||||
return Stack(
|
||||
children: [
|
||||
Opacity(opacity: 0.3, child: IgnorePointer(child: grid)),
|
||||
Opacity(opacity: 0.3, child: IgnorePointer(child: card)),
|
||||
Positioned.fill(
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
|
||||
Reference in New Issue
Block a user