Advertisement
ridyko

Contoh Hello World pada Flutter

Feb 19th, 2022
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.51 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. void main() {
  4.   runApp(MaterialApp(
  5.     title: "BelajarFlutter.com",
  6.     home: HomeScreen(),
  7.   ));
  8. }
  9.  
  10. class HomeScreen extends StatelessWidget {
  11.   @override
  12.   Widget build(BuildContext context) {
  13.     return Scaffold(
  14.         appBar: AppBar(
  15.           title: Text("Belajar Flutter"),
  16.         ),
  17.         body:
  18.             Center(
  19.               child: Text('Hello Word',
  20.                 style: TextStyle(fontSize: 20)
  21.               )
  22.             )
  23.     );
  24.   }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement