Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- void main() {
- runApp(MyApp());
- }
- class MyApp extends StatelessWidget {
- // This widget is the root of your application.
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- home: Scaffold(
- appBar: AppBar(
- title: Text("Coba coba"),
- ),
- body: Center(
- child: Container(
- color: Colors.lightBlue,
- width: 150,
- height: 50,
- child: Text(
- "Nyobain Flutter dlu ya gaess",
- style: TextStyle(
- color: Colors.white,
- fontStyle: FontStyle.italic,
- fontWeight: FontWeight.w700,
- fontSize: 20),
- // textAlign: TextAlign.center,
- // maxLines: 2,
- // overflow: TextOverflow.ellipsis,
- // softWrap: false,
- ),
- ),
- ),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement