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
c4c60993
Commit
c4c60993
authored
Apr 08, 2022
by
Dio Maulana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mempersimple code
parent
77f560c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
81 deletions
+42
-81
menu_setting.dart
lib/ui/settings/menu_setting.dart
+42
-81
No files found.
lib/ui/settings/menu_setting.dart
View file @
c4c60993
...
@@ -19,90 +19,51 @@ class SettingsMenu extends StatelessWidget {
...
@@ -19,90 +19,51 @@ class SettingsMenu extends StatelessWidget {
margin:
EdgeInsets
.
all
(
MediaQuery
.
of
(
context
).
size
.
width
*
0.02
),
margin:
EdgeInsets
.
all
(
MediaQuery
.
of
(
context
).
size
.
width
*
0.02
),
child:
Column
(
child:
Column
(
children:
[
children:
[
InkWell
(
// format listSetting(context, 'nama setting', icon, widget(ketika di pencet mau diarahkan kemana))
onTap:
()
{
listSetting
(
context
,
"General"
,
Icons
.
settings_applications
,
Navigator
.
push
(
const
GeneralSetting
()),
context
,
listSetting
(
context
,
"Base Url"
,
Icons
.
link
,
const
InputBaseUrl
()),
MaterialPageRoute
(
listSetting
(
context
,
"About"
,
Icons
.
android
,
const
AboutSetting
()),
builder:
(
BuildContext
context
)
=>
const
GeneralSetting
(),
),
);
},
child:
Row
(
children:
[
const
Icon
(
Icons
.
settings_applications
,
color:
Colors
.
black
,
size:
25
,
),
SizedBox
(
width:
MediaQuery
.
of
(
context
).
size
.
width
*
0.02
),
const
Text
(
"General"
,
style:
TextStyle
(
fontSize:
25
,
fontWeight:
FontWeight
.
w500
),
)
],
],
),
),
),
),
SizedBox
(
height:
MediaQuery
.
of
(
context
).
size
.
height
*
0.02
,
),
InkWell
(
onTap:
()
{
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
BuildContext
context
)
=>
const
InputBaseUrl
(),
),
);
);
},
}
child:
Row
(
children:
[
InkWell
listSetting
(
const
Icon
(
BuildContext
context
,
String
title
,
IconData
icons
,
Widget
route
)
{
Icons
.
link
,
return
InkWell
(
color:
Colors
.
black
,
size:
25
,
),
SizedBox
(
width:
MediaQuery
.
of
(
context
).
size
.
width
*
0.02
),
const
Text
(
"Base Url"
,
style:
TextStyle
(
fontSize:
25
,
fontWeight:
FontWeight
.
w500
),
)
],
),
),
SizedBox
(
height:
MediaQuery
.
of
(
context
).
size
.
height
*
0.02
,
),
InkWell
(
onTap:
()
{
onTap:
()
{
Navigator
.
push
(
Navigator
.
push
(
context
,
context
,
MaterialPageRoute
(
MaterialPageRoute
(
builder:
(
BuildContext
context
)
=>
const
AboutSetting
()
,
builder:
(
BuildContext
context
)
=>
route
,
),
),
);
);
},
},
child:
Container
(
child:
listSettingData
(
context
,
title
,
icons
),
);
}
Container
listSettingData
(
BuildContext
context
,
String
title
,
IconData
icons
)
{
return
Container
(
margin:
const
EdgeInsets
.
only
(
bottom:
15
),
// color: Colors.red,
child:
Row
(
child:
Row
(
children:
[
children:
[
const
Icon
(
Icon
(
Icons
.
android
,
icons
,
color:
Colors
.
black
,
color:
Colors
.
black
,
size:
25
,
size:
25
,
),
),
SizedBox
(
width:
MediaQuery
.
of
(
context
).
size
.
width
*
0.02
),
SizedBox
(
width:
MediaQuery
.
of
(
context
).
size
.
width
*
0.02
),
const
Text
(
Text
(
"About"
,
title
,
style:
style:
const
TextStyle
(
fontSize:
25
,
fontWeight:
FontWeight
.
w500
),
TextStyle
(
fontSize:
25
,
fontWeight:
FontWeight
.
w500
),
)
)
],
],
),
),
),
)
],
),
),
);
);
}
}
}
}
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