diff --git a/lib/widgets/game_card.dart b/lib/widgets/game_card.dart index 9562bb2..ebb2e16 100644 --- a/lib/widgets/game_card.dart +++ b/lib/widgets/game_card.dart @@ -86,27 +86,22 @@ class _GameCardState extends State with SingleTickerProviderStateMixin mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Expanded( - child: widget.isNameEditable - ? TextField( - controller: _nameController, - style: Theme.of(context).textTheme.titleLarge, - decoration: const InputDecoration( - labelText: 'Game Name', - border: OutlineInputBorder(), - ), - onChanged: (value) => widget.onGameUpdated(Game( - name: value, - versionRegex: widget.game.versionRegex, - lastPlayed: widget.game.lastPlayed, - rssFeedUrl: widget.game.rssFeedUrl, - actualVersion: widget.game.actualVersion, - lastUpdated: widget.game.lastUpdated, - )), - ) - : Text( - widget.game.name, - style: Theme.of(context).textTheme.titleLarge, - ), + child: TextField( + controller: _nameController, + style: Theme.of(context).textTheme.titleLarge, + enabled: widget.isNameEditable, + decoration: const InputDecoration.collapsed( + hintText: 'New Game', + ), + onChanged: (value) => widget.onGameUpdated(Game( + name: value, + versionRegex: widget.game.versionRegex, + lastPlayed: widget.game.lastPlayed, + rssFeedUrl: widget.game.rssFeedUrl, + actualVersion: widget.game.actualVersion, + lastUpdated: widget.game.lastUpdated, + )), + ), ), Row( mainAxisSize: MainAxisSize.min,