Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
second_display
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dio Maulana
second_display
Commits
d6bf7b2a
Commit
d6bf7b2a
authored
Apr 07, 2022
by
Dio Maulana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
about setting
parent
ab511e9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
0 deletions
+66
-0
about.dart
lib/ui/settings/about.dart
+66
-0
No files found.
lib/ui/settings/about.dart
0 → 100644
View file @
d6bf7b2a
import
'package:flutter/material.dart'
;
import
'package:second_display/helper/config.dart'
;
import
'package:second_display/main.dart'
;
class
AboutSetting
extends
StatefulWidget
{
const
AboutSetting
({
Key
?
key
})
:
super
(
key:
key
);
@override
State
<
AboutSetting
>
createState
()
=>
_AboutSettingState
();
}
class
_AboutSettingState
extends
State
<
AboutSetting
>
{
final
String
ipAddress
=
prefs
.
getString
(
'ipAddress'
)
??
'Not Found'
;
final
String
wifiName
=
prefs
.
getString
(
'wifiName'
)
??
'Not Found'
;
@override
void
initState
()
{
super
.
initState
();
}
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
appBar:
AppBar
(
title:
const
Text
(
"About"
),
backgroundColor:
backgroundAppBar
,
),
body:
Column
(
children:
[
Container
(
color:
Colors
.
black
.
withOpacity
(
0.5
),
height:
40
,
width:
MediaQuery
.
of
(
context
).
size
.
width
*
1
,
child:
Container
(
margin:
EdgeInsets
.
only
(
left:
10
),
child:
const
Align
(
alignment:
Alignment
.
centerLeft
,
child:
Text
(
"Device"
)),
),
),
listAbout
(
context
,
'IP Address'
,
ipAddress
),
listAbout
(
context
,
'App Version'
,
'1.0.0.+'
),
listAbout
(
context
,
'Wifi SSID'
,
wifiName
),
],
),
);
}
Container
listAbout
(
BuildContext
context
,
String
kiri
,
String
kanan
)
{
return
Container
(
margin:
const
EdgeInsets
.
only
(
left:
10
,
top:
10
,
right:
10
),
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
Text
(
kiri
,
style:
const
TextStyle
(
fontSize:
20
,
fontWeight:
FontWeight
.
w500
),
),
Text
(
kanan
,
style:
const
TextStyle
(
fontSize:
20
,
fontWeight:
FontWeight
.
w300
),
),
],
),
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment