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 / 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()),
@ybakos
ybakos / main.dart
Last active February 3, 2020 01:54
CS 492 Week 6 Exploration 1 Exercise
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: Exercise())
@ybakos
ybakos / main.dart
Last active January 24, 2020 03:31
CS 492 Week 5 Exploration 4 Exercise
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@ybakos
ybakos / main.dart
Created January 23, 2020 19:51
CS 492 Week 5 Exploration 3 Exercise
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(