fix: resolve layout overflow on narrow screens and polish card typography

This commit is contained in:
Alma Alexyz
2026-08-31 14:39:15 +05:00
parent 66ba3c5247
commit bc892c3388
3 changed files with 29 additions and 20 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ class _MainNavigationContainerState extends State<MainNavigationContainer> {
NavigationDestination( NavigationDestination(
icon: Icon(Icons.dialpad_outlined), icon: Icon(Icons.dialpad_outlined),
selectedIcon: GradientStar(size: 22), selectedIcon: GradientStar(size: 22),
label: 'Поиск 000..999', label: 'Оракул',
), ),
NavigationDestination( NavigationDestination(
icon: Icon(Icons.auto_awesome_outlined), icon: Icon(Icons.auto_awesome_outlined),
+9 -12
View File
@@ -124,27 +124,24 @@ class D10DiceRollerWidgetState extends State<D10DiceRollerWidget> {
child: Column( child: Column(
children: [ children: [
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
const Row( const GradientStar(size: 15),
children: [ const SizedBox(width: 6),
GradientStar(size: 16), const Expanded(
SizedBox(width: 8), child: Text(
Text( 'КЛЕРОМАНТИЯ • 3× d10',
'КЛЕРОМАНТИЯ • 3× d10 (0..9)',
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 11.5,
fontWeight: FontWeight.w900, fontWeight: FontWeight.w900,
letterSpacing: 0.8, letterSpacing: 0.5,
color: Color(0xFFFFD54F), color: Color(0xFFFFD54F),
), ),
), ),
],
), ),
Text( Text(
_internalRolling _internalRolling
? 'Бросок кубиков...' ? 'Бросок...'
: (widget.digits.length == 3 ? 'Число зафиксировано' : 'Ожидание 3 цифр'), : (widget.digits.length == 3 ? 'Зафиксировано' : '3 цифры'),
style: TextStyle( style: TextStyle(
fontSize: 11, fontSize: 11,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
+15 -3
View File
@@ -312,9 +312,21 @@ class _WordCardWidgetState extends State<WordCardWidget> {
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
GradientStarBadge( Row(
text: '#${widget.word.formattedSessionNumber} / 999', mainAxisSize: MainAxisSize.min,
size: 18, children: [
const GradientStar(size: 15),
const SizedBox(width: 6),
Text(
'ЗНАК #${widget.word.formattedSessionNumber}',
style: const TextStyle(
fontSize: 13,
fontWeight: FontWeight.w900,
letterSpacing: 1.0,
color: Color(0xFFFFD54F),
),
),
],
), ),
Row( Row(
children: [ children: [