Created
November 19, 2019 20:42
-
-
Save GrandSchtroumpf/dee4a7227a7f55bfb2de4c98cfce5a3b to your computer and use it in GitHub Desktop.
Test to build integrate a flutter gist inside dartpad
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( | |
title: 'Flutter Demo', | |
theme: ThemeData( | |
primarySwatch: Colors.blue, | |
), | |
home: HomePage(), | |
); | |
} | |
} | |
class HomePage extends StatelessWidget { | |
HomePage() : super(); | |
@override | |
Widget build(BuildContext context) { | |
return Row( | |
children: [ | |
WidgetDescription(), | |
WidgetExample(), | |
], | |
); | |
} | |
} | |
class WidgetDescription extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Text('Column'); | |
} | |
} | |
class WidgetExample extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Column(children: [ | |
Text('Line1'), | |
Text('Line2'), | |
Text('Line2'), | |
]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment