Skip to content

Instantly share code, notes, and snippets.

View ybakos's full-sized avatar
💭
the machine stops the machine stops the machine stops

Yong Joseph Bakos ybakos

💭
the machine stops the machine stops the machine stops
View GitHub Profile
@ybakos
ybakos / main.dart
Last active February 14, 2020 20:40
CS 492 Week 7 Exploration 4 Exercise ListView
import 'package:flutter/material.dart';
void main() => runApp(App());
class App extends StatefulWidget {
@override
State createState() => AppState();
}
class AppState extends State<App> {
@ybakos
ybakos / main.dart
Last active February 14, 2020 19:48
CS 492 Week 7 Exploration 3 Exercise Forms
import 'package:flutter/material.dart';
void main() => runApp(App());
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
@ybakos
ybakos / main.dart
Last active February 14, 2020 19:23
CS 492 Week 7 Exploration 2 Exercise Navigation
import 'package:flutter/material.dart';
void main() => runApp(App());
class App extends StatelessWidget {
// TODO: Declare a Map containing two routes,
// one for Exercise and one for Alpha.
@ybakos
ybakos / hint.txt
Last active February 13, 2020 16:42
CS 492 Week 7 Exploration 1 Exercise. LayoutBuilder.
You can't rotate the DartPad -- but you can resize the browser window!
Try making it narrower and wider.
@ybakos
ybakos / main.dart
Created February 10, 2020 06:28
Builders
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() {
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.landscapeLeft,
DeviceOrientation.landscapeRight
]);
runApp(App());
@ybakos
ybakos / main.dart
Last active February 10, 2020 06:13
Adaptive Layouts with LayoutBuilder
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() {
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp, DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeRight
]);
runApp(App());
}
@ybakos
ybakos / main.dart
Last active February 10, 2020 05:52
OrientationBuilder vs Device Orientation
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() {
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp, DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeRight
]);
runApp(App());
}
@ybakos
ybakos / main.dart
Last active February 4, 2020 19:28
CS 492 Week 6 Exploration 3 Exercise
import 'package:flutter/material.dart';
void main() => runApp(App());
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
@ybakos
ybakos / main.dart
Last active February 4, 2020 19:11
CS 492 Week 6 Exploration 2.2 Exercise
import 'package:flutter/material.dart';
void main() => runApp(App());
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
@ybakos
ybakos / main.dart
Last active February 4, 2020 16:12
CS 492 Week 6 Exploration 2.1 Exercise: Gestures
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: MyWidget()),