@@ -10,7 +10,7 @@ import 'package:turrant/themes/styling.dart';
10
10
class ServerControls extends StatelessWidget {
11
11
const ServerControls (this .server, this .map, this .refreshInfo,
12
12
this .sendCommandToSv, this .showToast, this .maps, this .numOfPlayers,
13
- this .maxPlayers, this .version, this .tvPort);
13
+ this .maxPlayers, this .version, this .tvPort, this .isSvOutDated );
14
14
15
15
final Server server;
16
16
final String map;
@@ -22,6 +22,7 @@ class ServerControls extends StatelessWidget {
22
22
final String maxPlayers;
23
23
final String version;
24
24
final int tvPort;
25
+ final bool isSvOutDated;
25
26
26
27
@override
27
28
Widget build (BuildContext context) {
@@ -46,10 +47,10 @@ class ServerControls extends StatelessWidget {
46
47
Row (
47
48
crossAxisAlignment: CrossAxisAlignment .start,
48
49
children: < Widget > [
49
- const Icon (Icons .map , color: AppStyles .blue2,
50
- size: 18
50
+ const Icon (FontAwesomeIcons .solidMap , color: AppStyles .blue2,
51
+ size: 16
51
52
),
52
- const SizedBox (width: 8 ,),
53
+ const SizedBox (width: 10 ,),
53
54
Column (
54
55
crossAxisAlignment: CrossAxisAlignment .start,
55
56
children: < Widget > [
@@ -100,8 +101,9 @@ class ServerControls extends StatelessWidget {
100
101
Row (
101
102
crossAxisAlignment: CrossAxisAlignment .start,
102
103
children: < Widget > [
103
- const Icon (Icons .tv, color: AppStyles .blue2, size: 18 ,),
104
- const SizedBox (width: 8 ,),
104
+ const Icon (FontAwesomeIcons .tv,
105
+ color: AppStyles .blue2, size: 16 ,),
106
+ const SizedBox (width: 10 ,),
105
107
Column (
106
108
crossAxisAlignment: CrossAxisAlignment .start,
107
109
children: < Widget > [
@@ -118,16 +120,19 @@ class ServerControls extends StatelessWidget {
118
120
Row (
119
121
crossAxisAlignment: CrossAxisAlignment .start,
120
122
children: < Widget > [
121
- const Icon (FontAwesomeIcons .codeBranch,
122
- color: AppStyles .blue2, size: 18 ),
123
- const SizedBox (width: 8 ,),
123
+ if (! isSvOutDated) const Icon (FontAwesomeIcons .codeBranch,
124
+ color: AppStyles .blue2, size: 16 )
125
+ else const Icon (FontAwesomeIcons .exclamationTriangle,
126
+ color: AppStyles .yellow, size: 16
127
+ ),
128
+ const SizedBox (width: 10 ,),
124
129
Column (
125
130
crossAxisAlignment: CrossAxisAlignment .start,
126
131
children: < Widget > [
127
132
Text (version,
128
133
style: AppStyles .serverDetailsHeaderTitle,),
129
134
const SizedBox (height: 2 ,),
130
- const Text ('Server Version ' ,
135
+ Text (isSvOutDated ? 'Update available!' : 'Up to Date ' ,
131
136
style: AppStyles .consoleRes),
132
137
],
133
138
),
0 commit comments