Commit caea547d authored by Dio Maulana's avatar Dio Maulana

rapihin code

parent 0d5effea
......@@ -25,7 +25,9 @@ class _AboutSettingState extends State<AboutSetting> {
title: const Text("About"),
backgroundColor: backgroundAppBar,
),
body: Column(
body: SizedBox(
height: MediaQuery.of(context).size.height * 1,
child: ListView(
children: [
titleHeader(context, "Device"),
listAbout(context, 'IP Address', ipAddress),
......@@ -34,24 +36,30 @@ class _AboutSettingState extends State<AboutSetting> {
listAbout(context, 'Wifi SSID', wifiName),
],
),
),
);
}
Container titleHeader(BuildContext context, String title) {
return Container(
color: Colors.black.withOpacity(0.5),
height: 40,
width: MediaQuery.of(context).size.width * 1,
height: 50,
width: MediaQuery.of(context).size.width,
child: Container(
margin: EdgeInsets.only(left: 10),
child: Align(alignment: Alignment.centerLeft, child: Text(title)),
margin: const EdgeInsets.only(left: 10),
child: Align(
alignment: Alignment.centerLeft,
child: Text(
title,
style: const TextStyle(fontWeight: FontWeight.w600, fontSize: 20),
)),
),
);
}
Container listAbout(BuildContext context, String kiri, String kanan) {
return Container(
margin: const EdgeInsets.only(left: 10, top: 10, right: 10),
margin: const EdgeInsets.only(left: 10, top: 20, right: 10),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment