format with dart format
This commit is contained in:
@@ -1,32 +1,35 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:game_tracker/core/custom_theme.dart';
|
||||
|
||||
Widget GameHistoryListTile(Map<String, dynamic> currentGame){
|
||||
return Container(
|
||||
margin: EdgeInsets.only(top: 5, bottom: 5, left: 10, right: 10),
|
||||
padding: EdgeInsets.all(10),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
color: CustomTheme.secondaryColor,
|
||||
Widget GameHistoryListTile(Map<String, dynamic> currentGame) {
|
||||
return Container(
|
||||
margin: EdgeInsets.only(top: 5, bottom: 5, left: 10, right: 10),
|
||||
padding: EdgeInsets.all(10),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
color: CustomTheme.secondaryColor,
|
||||
),
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Text("${currentGame['game']}: ", style: TextStyle(fontSize: 20)),
|
||||
Text("${currentGame['title']}", style: TextStyle(fontSize: 20)),
|
||||
Spacer(),
|
||||
Text(
|
||||
"${currentGame['players']} Spieler",
|
||||
style: TextStyle(fontSize: 20),
|
||||
),
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Text("${currentGame['game']}: ", style: TextStyle(fontSize: 20)),
|
||||
Text("${currentGame['title']}", style: TextStyle(fontSize: 20)),
|
||||
Spacer(),
|
||||
Text("${currentGame['players']} Spieler", style: TextStyle(fontSize: 20))
|
||||
],
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Text("${currentGame['group']}", style: TextStyle(fontSize: 20)),
|
||||
Spacer(),
|
||||
Text("${currentGame['date']}", style: TextStyle(fontSize: 20))
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
],
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Text("${currentGame['group']}", style: TextStyle(fontSize: 20)),
|
||||
Spacer(),
|
||||
Text("${currentGame['date']}", style: TextStyle(fontSize: 20)),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2,13 +2,13 @@ import 'package:flutter/material.dart';
|
||||
|
||||
Widget TopCenteredMessage(String message) {
|
||||
return Container(
|
||||
padding: EdgeInsets.only(top:100),
|
||||
margin: EdgeInsets.only(left: 10, right: 10),
|
||||
alignment: Alignment.topCenter,
|
||||
child: Text(
|
||||
"$message",
|
||||
style: TextStyle(fontSize: 20),
|
||||
textAlign: TextAlign.center,
|
||||
)
|
||||
);
|
||||
}
|
||||
padding: EdgeInsets.only(top: 100),
|
||||
margin: EdgeInsets.only(left: 10, right: 10),
|
||||
alignment: Alignment.topCenter,
|
||||
child: Text(
|
||||
"$message",
|
||||
style: TextStyle(fontSize: 20),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user