Skip to content

Instantly share code, notes, and snippets.

View md-weber's full-sized avatar
💙
Flutter

Max Weber md-weber

💙
Flutter
View GitHub Profile
@md-weber
md-weber / paths.dart
Last active August 25, 2019 01:37
Flutter app to remember routes
class RoutePaths {
static const String Login = 'login';
static const String Register = 'register';
static const String Home = '/';
static const String EditNote = 'note';
}
@md-weber
md-weber / router.dart
Created August 25, 2019 01:38
Router of my Flutter App
import 'package:client/paths.dart';
import 'package:client/ui/pages/home.page.dart';
import 'package:client/ui/pages/login.page.dart';
import 'package:client/ui/pages/register.page.dart';
import 'package:flutter_web/material.dart';
class Router {
static Route<dynamic> generateRoute(RouteSettings settings) {
switch (settings.name) {
case RoutePaths.Home:
@md-weber
md-weber / main.dart
Created August 25, 2019 01:42
Digital Journal -
import 'package:client/paths.dart';
import 'package:client/provider-setup.dart';
import 'package:client/ui/pages/home.page.dart';
import 'package:client/ui/router.dart';
import 'package:flutter_web/cupertino.dart';
import 'package:flutter_web/material.dart';
import 'package:provider/provider.dart';
void main() => runApp(MyApp());
function Get-ScriptDirectory
{
Split-Path $MyInvocation.ScriptName
}
Write-Host "Startup Server..."
$ServerFolder = Join-Path -Path (get-item (Get-ScriptDirectory)).Parent.FullName -ChildPath "server";
Start-Process powershell -ArgumentList "aqueduct serve" -WorkingDirectory $ServerFolder;
Write-Host "Started Client,..."
@md-weber
md-weber / main.yaml
Created September 8, 2019 02:39
Yaml file for GitHub Actions
name: CI
on:
pull_request:
branches:
- development
- master
jobs:
test:
@md-weber
md-weber / index.html
Created September 17, 2019 09:29
section without sense
<!-- makes no sense for my structure -->
<div>
<div></div>
<section></section>
</div>
>> flutter channel
Flutter channels:
* master 
 dev
* beta 
 stable
>> flutter channel beta
# To download the Flutter SDK execute flutter doctor
>> flutter doctor
>> flutter config --enable-web
Setting 
 "enable-web" value to "true".
>> flutter config Settings: enable-web: true
>> flutter create ./project-name