-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
astrutz
committed
Apr 8, 2021
1 parent
ea3f4b3
commit 0bc9291
Showing
5 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import 'package:dartsdrill/models/Game.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class GameSummaryScreen extends StatelessWidget { | ||
final Game game; | ||
GameSummaryScreen(this.game); | ||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar( | ||
title: Text('Trainingsspiel absolviert'), | ||
brightness: Brightness.dark, | ||
automaticallyImplyLeading: false, | ||
), | ||
body: Column( | ||
children: <Widget>[ | ||
Expanded( | ||
child: ListView( | ||
padding: const EdgeInsets.all(10), | ||
children: <Widget>[ | ||
Container( | ||
child: Text( | ||
game.name, | ||
style: Theme.of(context).textTheme.subtitle1, | ||
), | ||
margin: EdgeInsets.fromLTRB(10, 10, 10, 10), | ||
), | ||
Container( | ||
child: Text( | ||
game.getStatStringTMP(), | ||
style: Theme.of(context).textTheme.bodyText2, | ||
), | ||
margin: EdgeInsets.fromLTRB(10, 10, 10, 0), | ||
), | ||
], | ||
), | ||
flex: 1, | ||
), | ||
Expanded( | ||
child: Text('tbd Stats'), | ||
flex: 1, | ||
), | ||
Container( | ||
child: ElevatedButton( | ||
child: Text( | ||
'Abschließen', | ||
), | ||
onPressed: () => Navigator.pop(context), | ||
), | ||
margin: EdgeInsets.fromLTRB(0, 0, 10, 40), | ||
), | ||
], | ||
), | ||
); | ||
} | ||
} |