Skip to content

Instantly share code, notes, and snippets.

@Stef-GMS
Stef-GMS / humpday_2025-02-26_soloman.dart
Created February 26, 2025 20:31 — forked from slightfoot/humpday_2025-02-26_soloman.dart
Wizard State Management - by Simon Lightfoot :: #HumpdayQandA on 26th February 2025 :: https://www.youtube.com/watch?v=wn_g2Z6RaZ8
// MIT License
//
// Copyright (c) 2025 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@Stef-GMS
Stef-GMS / humpday_2025-02-26_soloman.dart
Created February 26, 2025 20:31 — forked from slightfoot/humpday_2025-02-26_soloman.dart
Wizard State Management - by Simon Lightfoot :: #HumpdayQandA on 26th February 2025 :: https://www.youtube.com/watch?v=wn_g2Z6RaZ8
// MIT License
//
// Copyright (c) 2025 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//07_structure_of_a_flutter_app.dart
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
//import 'constants.dart';
void main() => runApp(AddTitle());
class AddTitle extends StatelessWidget {
// This widget is the root of your application.
import 'package:flutter/material.dart';
//import 'constants.dart';
void main() => runApp(AddTitle());
class AddTitle extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
import 'package:flutter/material.dart';
// ------ Color Constants ------
const kBottomContainerHeight = 80.0;
//const kBackgroundColorHeader = Color(0xFF0389F4); //Colors.lightBlue
//const kBackgroundColorBody = Color(0xFF40c4ff); //Colors.lightBlueAccent
const kColorHeaderContainer = Color(0xFF64b5f6); //color from App icon
//const kColorBackgroundBody = Color(0xFF64b5f6); //color from App icon
const kColorBackgroundBody = Color(0xFFbbdefb); //color from App icon
import 'package:flutter/material.dart';
void main() => runApp(AddTitle());
class AddTitle extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
home: MyHomePage(),
import 'package:flutter/material.dart';
void main() => runApp(AddTitle());
class AddTitle extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
home: MyHomePage(),
import 'package:flutter/material.dart';
void main() => runApp(AddAppBar());
class AddAppBar extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
home: MyHomePage(),
import 'package:flutter/material.dart';
void main() => runApp(BlankCanvas());
class BlankCanvas extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
home: MyHomePage(),
import 'package:flutter/material.dart';
void main() => runApp(MaterialApp(home: Text('Hello, World!')));