Created
February 23, 2021 01:15
-
-
Save antonprafanto/18d8002b196f985d21ded29d2230c1da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: Scaffold( | |
appBar: AppBar( | |
title: Text("Aplikasi Pertamaku"), | |
), | |
body: Center( | |
child: Container( | |
color: Colors.lightGreen, | |
width: 200, | |
height: 200, | |
child: Text( | |
"Hari ini saya latihan membuat aplikasi sederhana mengggunakan flutter", | |
style: TextStyle( | |
color: Colors.white, | |
fontStyle: FontStyle.italic, | |
fontSize: 25, | |
fontWeight: FontWeight.w600), | |
))), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment