Skip to content

Instantly share code, notes, and snippets.

View wilburx9's full-sized avatar

Wilberforce Uwadiegwu wilburx9

View GitHub Profile
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
// This method is rerun every time setState is called
//
// The Flutter framework has been optimized to make rerunning build methods
// fast, so that you can just rebuild anything that needs updating rather
// than having to individually change instances of widgets.
import 'package:flutter/material.dart';
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
// This widget is the home page of your application. It is stateful, meaning
// that it has a State object (defined below) that contains fields that affect
// how it looks.
// This class is the configuration for the state. It holds the values (in this
@wilburx9
wilburx9 / main.dart
Last active March 22, 2021 11:04
The starting point of your Flutter App
import 'package:flutter/material.dart';
import 'package:news_aggreator/home_page.dart'
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return new MaterialApp(