2 points

All the code you need to run Hello World in Flutter using a Stateless widget


dashboard

Sun Dec 29 2019 19:42:22 GMT+0000 (UTC)

Posted by @charter_carter #android #dart #flutter #ios #helloworld

import 'package:flutter/material.dart';

void main() {
  runApp(
    new MaterialApp(
      title: 'Hello World App',
      home: new myApp(),
    )
  );
}

class myApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text('Hello World App'),
      ),
      body: new Center(
        child: new Text(
          'Hello, world!'
        ),
      ),
    );
  }
}
content_copy
https://kodestat.gitbook.io/flutter/flutter-hello-world

>> Browse more code snippets

more_vert