import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Web Training',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Column(
          mainAxisSize: MainAxisSize.min,
          children: <Widget>[
            Text(
              "Click!",
              style: TextStyle(
                fontSize: 50.0
              ),
            ),
            Text(
              "↓",
              style: TextStyle(
                fontSize: 30.0
              ),
            ),
            Container(
              width: 300.0,
              height: 200.0,
              color: Colors.orange,
              margin: EdgeInsets.all(8.0),
              padding: EdgeInsets.all(8.0),
              child: RaisedButton(
                onPressed: () {
                  print("Button Clicked!");
                },
                child: Text(
                  "Hello, Flutter!",
                  style: TextStyle(
                    fontSize: 32.0,
                    color: Colors.green
                  ),
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.