Removed title row and changed segmendetControl Padding
This commit is contained in:
@@ -115,7 +115,7 @@ class _RoundViewState extends State<RoundView> {
|
|||||||
vertical: 10,
|
vertical: 10,
|
||||||
),
|
),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 40,
|
height: 60,
|
||||||
child: CupertinoSegmentedControl<int>(
|
child: CupertinoSegmentedControl<int>(
|
||||||
unselectedColor: CustomTheme.backgroundTintColor,
|
unselectedColor: CustomTheme.backgroundTintColor,
|
||||||
selectedColor: CustomTheme.primaryColor,
|
selectedColor: CustomTheme.primaryColor,
|
||||||
@@ -131,7 +131,7 @@ class _RoundViewState extends State<RoundView> {
|
|||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(
|
padding: const EdgeInsets.symmetric(
|
||||||
horizontal: 6,
|
horizontal: 6,
|
||||||
vertical: 6,
|
vertical: 8,
|
||||||
),
|
),
|
||||||
child: FittedBox(
|
child: FittedBox(
|
||||||
fit: BoxFit.scaleDown,
|
fit: BoxFit.scaleDown,
|
||||||
@@ -155,27 +155,6 @@ class _RoundViewState extends State<RoundView> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 20.0),
|
|
||||||
child: CupertinoListTile(
|
|
||||||
title: Text(AppLocalizations.of(context).player),
|
|
||||||
trailing: Row(
|
|
||||||
children: [
|
|
||||||
SizedBox(
|
|
||||||
width: 100,
|
|
||||||
child: Center(
|
|
||||||
child: Text(
|
|
||||||
AppLocalizations.of(context).points))),
|
|
||||||
const SizedBox(width: 20),
|
|
||||||
SizedBox(
|
|
||||||
width: 80,
|
|
||||||
child: Center(
|
|
||||||
child: Text(AppLocalizations.of(context)
|
|
||||||
.kamikaze))),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
ListView.builder(
|
ListView.builder(
|
||||||
shrinkWrap: true,
|
shrinkWrap: true,
|
||||||
physics: const NeverScrollableScrollPhysics(),
|
physics: const NeverScrollableScrollPhysics(),
|
||||||
@@ -212,77 +191,32 @@ class _RoundViewState extends State<RoundView> {
|
|||||||
subtitle: Text(
|
subtitle: Text(
|
||||||
'${widget.gameSession.playerScores[originalIndex]}'
|
'${widget.gameSession.playerScores[originalIndex]}'
|
||||||
' ${AppLocalizations.of(context).points}'),
|
' ${AppLocalizations.of(context).points}'),
|
||||||
trailing: Row(
|
trailing: SizedBox(
|
||||||
children: [
|
width: 100,
|
||||||
SizedBox(
|
child: CupertinoTextField(
|
||||||
width: 100,
|
maxLength: 3,
|
||||||
child: CupertinoTextField(
|
focusNode: _focusNodeList[originalIndex],
|
||||||
maxLength: 3,
|
keyboardType:
|
||||||
focusNode: _focusNodeList[originalIndex],
|
const TextInputType.numberWithOptions(
|
||||||
keyboardType:
|
signed: true,
|
||||||
const TextInputType.numberWithOptions(
|
decimal: false,
|
||||||
signed: true,
|
|
||||||
decimal: false,
|
|
||||||
),
|
|
||||||
inputFormatters: [
|
|
||||||
FilteringTextInputFormatter.digitsOnly,
|
|
||||||
],
|
|
||||||
textInputAction: index ==
|
|
||||||
widget.gameSession.players
|
|
||||||
.length -
|
|
||||||
1
|
|
||||||
? TextInputAction.done
|
|
||||||
: TextInputAction.next,
|
|
||||||
controller:
|
|
||||||
_scoreControllerList[originalIndex],
|
|
||||||
placeholder:
|
|
||||||
AppLocalizations.of(context).points,
|
|
||||||
textAlign: TextAlign.center,
|
|
||||||
onSubmitted: (_) =>
|
|
||||||
_focusNextTextfield(originalIndex),
|
|
||||||
onChanged: (_) => setState(() {}),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
const SizedBox(width: 50),
|
inputFormatters: [
|
||||||
GestureDetector(
|
FilteringTextInputFormatter.digitsOnly,
|
||||||
onTap: () {
|
],
|
||||||
setState(() {
|
textInputAction: index ==
|
||||||
_kamikazePlayerIndex =
|
widget.gameSession.players.length - 1
|
||||||
(_kamikazePlayerIndex ==
|
? TextInputAction.done
|
||||||
originalIndex)
|
: TextInputAction.next,
|
||||||
? null
|
controller:
|
||||||
: originalIndex;
|
_scoreControllerList[originalIndex],
|
||||||
});
|
placeholder:
|
||||||
},
|
AppLocalizations.of(context).points,
|
||||||
child: Container(
|
textAlign: TextAlign.center,
|
||||||
width: 24,
|
onSubmitted: (_) =>
|
||||||
height: 24,
|
_focusNextTextfield(originalIndex),
|
||||||
decoration: BoxDecoration(
|
onChanged: (_) => setState(() {}),
|
||||||
shape: BoxShape.circle,
|
),
|
||||||
color: _kamikazePlayerIndex ==
|
|
||||||
originalIndex
|
|
||||||
? CupertinoColors.systemRed
|
|
||||||
: CupertinoColors
|
|
||||||
.tertiarySystemFill,
|
|
||||||
border: Border.all(
|
|
||||||
color: _kamikazePlayerIndex ==
|
|
||||||
originalIndex
|
|
||||||
? CupertinoColors.systemRed
|
|
||||||
: CupertinoColors.systemGrey,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
child: _kamikazePlayerIndex ==
|
|
||||||
originalIndex
|
|
||||||
? const Icon(
|
|
||||||
CupertinoIcons.exclamationmark,
|
|
||||||
size: 16,
|
|
||||||
color: CupertinoColors.white,
|
|
||||||
)
|
|
||||||
: null,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(width: 22),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ name: cabo_counter
|
|||||||
description: "Mobile app for the card game Cabo"
|
description: "Mobile app for the card game Cabo"
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 0.4.8+526
|
version: 0.4.8+529
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.5.4
|
sdk: ^3.5.4
|
||||||
|
|||||||
Reference in New Issue
Block a user