Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- class MyHomePage extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return new Scaffold(
- appBar: new AppBar(
- title: const Text("Welcome to flutter"),
- ),
- body: new Center(
- child: const Text("Hello world!"),
- ),
- );
- }
- }
- void main() => runApp(MyApp());
- class MyApp extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- title: 'Flutter Demo',
- theme: ThemeData(
- primarySwatch: Colors.red,
- ),
- home: new Scaffold(
- appBar: new AppBar(
- title: const Text("Welcome to flutter"),
- ),
- body: new Center(
- child: const Text("Hello world!"),
- ),
- );,
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement