Make new new
This commit is contained in:
@@ -86,13 +86,12 @@ class _GameCardState extends State<GameCard> with SingleTickerProviderStateMixin
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: widget.isNameEditable
|
child: TextField(
|
||||||
? TextField(
|
|
||||||
controller: _nameController,
|
controller: _nameController,
|
||||||
style: Theme.of(context).textTheme.titleLarge,
|
style: Theme.of(context).textTheme.titleLarge,
|
||||||
decoration: const InputDecoration(
|
enabled: widget.isNameEditable,
|
||||||
labelText: 'Game Name',
|
decoration: const InputDecoration.collapsed(
|
||||||
border: OutlineInputBorder(),
|
hintText: 'New Game',
|
||||||
),
|
),
|
||||||
onChanged: (value) => widget.onGameUpdated(Game(
|
onChanged: (value) => widget.onGameUpdated(Game(
|
||||||
name: value,
|
name: value,
|
||||||
@@ -102,10 +101,6 @@ class _GameCardState extends State<GameCard> with SingleTickerProviderStateMixin
|
|||||||
actualVersion: widget.game.actualVersion,
|
actualVersion: widget.game.actualVersion,
|
||||||
lastUpdated: widget.game.lastUpdated,
|
lastUpdated: widget.game.lastUpdated,
|
||||||
)),
|
)),
|
||||||
)
|
|
||||||
: Text(
|
|
||||||
widget.game.name,
|
|
||||||
style: Theme.of(context).textTheme.titleLarge,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
|
Reference in New Issue
Block a user