Skip to content

Instantly share code, notes, and snippets.

View tolo's full-sized avatar

Tobias Löfstrand tolo

View GitHub Profile
@tolo
tolo / ISSPlaygroundDemo.xml
Last active June 24, 2023 12:29
ISSPlayground demo view definition file
<?xml version="1.0" encoding="UTF-8"?>
<!--
Demo InterfaCSS view definition file.
-->
<view id="demoRootView">
<view id="demoHeaderView" class="headerView">
<label id="demoHeaderLabel"/>
@tolo
tolo / ISSPlaygroundDemo.css
Last active October 6, 2015 08:23
ISSPlayground demo stylesheet file
/*
* Demo InterfaCSS stylesheet file.
*
* Read more about the stylesheet format here: https://github.com/tolo/InterfaCSS/wiki/Stylesheet-format
* Checkout this page for a reference on what properties can be set: https://github.com/tolo/InterfaCSS/wiki/Stylesheet-Property-Reference
*
* For a short selection of available properties that can be set, see bottom of file.
*/
<?xml version="1.0" encoding="UTF-8"?>
<view id="rootView">
<label id="helloAppleLabel1"/>
<label id="helloAppleLabel2"/>
<label id="helloAppleLabel3"/>
<label id="helloAppleLabel4"/>
<label id="helloAppleLabel5"/>
</view>
@font1: Superclarendon-BoldItalic 12;
@font2: AvenirNextCondensed-Medium 26;
@font3: Futura-CondensedExtraBold 32;
@font4: GillSans-BoldItalic 38;
@font5: Menlo-Bold 46;
#rootView {
backgroundColor: gradient(#fafafa, #e0e0e0);
@tolo
tolo / main.dart
Last active June 8, 2021 14:39
Flutter Labinar - Lab 1 - Counter (incomplete)
import 'package:flutter/material.dart';
void main() {
runApp(CounterApp());
}
class CounterApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@tolo
tolo / main.dart
Last active January 18, 2023 14:39
Flutter Labinar - Lab 1 - Counter (complete)
// ignore_for_file: prefer_const_declarations
// ignore_for_file: prefer_const_constructors
// ignore_for_file: prefer_final_fields
// ignore_for_file: use_key_in_widget_constructors
// ignore_for_file: prefer_const_literals_to_create_immutables
// ignore_for_file: prefer_const_constructors_in_immutables
// ignore_for_file: avoid_print
import 'package:flutter/material.dart';
@tolo
tolo / main.dart
Last active June 9, 2021 08:57
Flutter Labinar DemoApp (complete)
import 'package:flutter/material.dart';
import 'dart:async';
import 'dart:convert';
// For DartPad:
import 'dart:html' as http; // Cannot use https://pub.dev/packages/http in DartPad...
// For mobile (and web):
//import 'package:http/http.dart' as http;
@tolo
tolo / main.dart
Last active June 8, 2021 14:44
Flutter Labinar - Lab 2 (complete)
import 'package:flutter/material.dart';
void main() => runApp(SignUpApp());
class SignUpApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
routes: {
@tolo
tolo / main.dart
Last active May 18, 2022 21:42
RxNumPad (Flutter)
import 'package:flutter/material.dart';
import 'package:rxdart/rxdart.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(RxNumPadApp());
}
@tolo
tolo / nested_navigation_shell_route.dart
Last active March 23, 2024 07:49
Example showing how to use go_router to build persistent nested navigation (i.e. separate nested navigation trees) with a BottomNavigationBar.
// This temporary implementation is now obsolete, see instead:
// https://pub.dev/documentation/go_router/latest/go_router/StatefulShellRoute-class.html