This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp( | |
MaterialApp( | |
home: Home(), | |
), | |
); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
// --- route_provider.dart | |
class RouteProvider extends InheritedWidget { | |
final TransitionRoute route; | |
RouteProvider({ | |
Key key, | |
@required this.route, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
// --- app_theme.dart | |
abstract class AppTheme {} | |
class AppThemeProvider extends InheritedWidget { | |
final AppTheme theme; | |
AppThemeProvider({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class DataProvider<T, K> extends StatefulWidget { | |
final K dataKey; | |
final T data; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
// import 'package:flutter/scheduler.dart' show timeDilation; | |
void main() { | |
// timeDilation = 10.0; | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MIT License | |
// | |
// Copyright (c) 2019 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
final mask = '~/{lib}/kits/{package}/lib'; | |
final replacer = '/Assets/{package}/Kits/{lib}/src'; | |
// print(RegExp.escape(mask)); | |
final maskPrepared = '^' + RegExp.escape(mask).replaceAllMapped(RegExp(r'\\\{(.*?)\\\}'), (m) => '(?<${m.group(1)}>.*?)') + '(?<__tail__>.*?)\$'; | |
final regex = RegExp(maskPrepared); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:collection'; | |
class Record { | |
int id; | |
String name; | |
int position; | |
double priority; | |
String guid; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Record { | |
int id; | |
String name; | |
int position; | |
double priority; | |
Record({this.id, this.name, this.position, this.priority}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Color { | |
final int value; | |
const Color(this.value); | |
} | |
class AppTheme { |