Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save narenarjun/31a6e82694f2e28b851ec7abb60843d2 to your computer and use it in GitHub Desktop.
Save narenarjun/31a6e82694f2e28b851ec7abb60843d2 to your computer and use it in GitHub Desktop.
intro dartpad code for the series
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
body: Center(
child: FinalScreen(),
),
),
);
}
}
class FinalScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
padding: EdgeInsets.all(8.0),
height: double.infinity,
width: double.infinity,
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.bottomLeft,
end: Alignment.topRight,
colors: [const Color(0xFF00C9FF), const Color(0xFF92FE9D)],
),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
"Welcome to the",
style: TextStyle(
fontSize: 32.0,
fontWeight: FontWeight.bold,
),
),
SizedBox(width: 30.0, height: 30.0),
Text(
"Hitchhikers Guide to flutter from the JS world series",
style: TextStyle(
fontSize: 26.0,
color: Colors.black,
fontStyle: FontStyle.italic,
),
),
SizedBox(
width: 50.0,
height: 50.0,
),
Text(
"This is the first post in this series which will introduce to the features of Flutter ecosystem.",
style: TextStyle(fontSize: 20.0),
),
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment