Skip to content

Instantly share code, notes, and snippets.

@GrandSchtroumpf
Created November 19, 2019 20:42
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 GrandSchtroumpf/dee4a7227a7f55bfb2de4c98cfce5a3b to your computer and use it in GitHub Desktop.
Save GrandSchtroumpf/dee4a7227a7f55bfb2de4c98cfce5a3b to your computer and use it in GitHub Desktop.
Test to build integrate a flutter gist inside dartpad
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