Skip to content

Instantly share code, notes, and snippets.

@mukhtharcm
Created October 6, 2020 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mukhtharcm/e5ab80ce86186e4f2ef0e57fe1471eae to your computer and use it in GitHub Desktop.
Save mukhtharcm/e5ab80ce86186e4f2ef0e57fe1471eae to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(home: Home()));
}
class Home extends StatefulWidget {
@override
_HomeState createState() => _HomeState();
}
class _HomeState extends State<Home> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('This is in Dartpad'),
),
body: Column(
children: [
Container(
height: 200,
decoration: BoxDecoration(color: Colors.teal),
child: Center(
child: Text('This is embedded using Dartpad'),
),
),
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment