This file contains 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:model/blocs/base_bloc.dart'; | |
/// Used to give [child] and all it's subsequent children access to [blocs]. | |
/// To get a reference to 'SomeBloc' from a child use: BlocsProvider.of<SomeBloc>(context) | |
class BlocsProvider extends StatefulWidget { | |
BlocsProvider({Key key, @required this.child, @required this.blocs}) | |
: super(key: key); | |
final Widget child; |
This file contains 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/animation.dart'; | |
import 'package:flutter/material.dart'; | |
class AutoScrollText extends StatefulWidget { | |
final double height; | |
final List<Widget> items; | |
AutoScrollText({this.height = 24.0, this.items}); | |
@override | |
State<StatefulWidget> createState() => new _AutoScrollTextState(); |
This file contains 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
Widget getErrorWidget(BuildContext context, FlutterErrorDetails error) { | |
return Center( | |
child: Text( | |
"Error appeared.", | |
style: Theme.of(context).textTheme.title.copyWith(color: Colors.white), | |
), | |
); | |
} | |
class MyApp extends StatelessWidget { |
This file contains 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'; | |
/// Navigator.of(context).push(FadeRoute( | |
/// builder: (context) { | |
/// return NewPage(); | |
/// } | |
/// )); | |
class FadeRoute extends PageRoute { | |
FadeRoute({@required this.builder}); |
This file contains 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/foundation.dart'; | |
import 'package:flutter/gestures.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:url_launcher/url_launcher.dart' as launcher; | |
///TODO: check performance impact bro !!! | |
class LinkTextSpan extends TextSpan { | |
LinkTextSpan({TextStyle style, String url, String text}) | |
: super( | |
style: style, |
This file contains 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:async'; | |
import 'package:flutter/material.dart'; | |
class InfiniteScroll extends StatefulWidget { | |
@override | |
_InfiniteScrollState createState() => new _InfiniteScrollState(); | |
} | |
class _InfiniteScrollState extends State<InfiniteScroll> { |
This file contains 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
Sublime text 3 (Build 3100 to 3114) - license key [ tested on Mac OS ] | |
—– BEGIN LICENSE —– | |
Michael Barnes | |
Single User License | |
EA7E-821385 | |
8A353C41 872A0D5C DF9B2950 AFF6F667 | |
C458EA6D 8EA3C286 98D1D650 131A97AB | |
AA919AEC EF20E143 B361B1E7 4C8B7F04 | |
B085E65E 2F5F5360 8489D422 FB8FC1AA |
This file contains 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
function dataURItoBlob(dataURI) { | |
var byteString = atob(dataURI.split(',')[1]); | |
var ab = new ArrayBuffer(byteString.length); | |
var ia = new Uint8Array(ab); | |
for (var i = 0; i < byteString.length; i++) { | |
ia[i] = byteString.charCodeAt(i); | |
} | |
return new Blob([ab], { type: 'image/jpeg' }); | |
} | |
function supportFile (){ |
This file contains 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
RF PH - Praxis Bell Rider lvl 40 - Official | |
RF Brazen - Cora Pure Wizards lvl 55 or 60 | |
RF Olympic - Bell | |
RF USA Official - ACC Punisher lvl 50, Spec lvl 45 | |
RF Nexus - ACC Punisher/Warder - Spec PB Hunter | |
Welcome Gift - Get Jade of Punishment/ 2 |
This file contains 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
## Configure eth0 | |
# | |
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
DEVICE="eth0" | |
NM_CONTROLLED="yes" | |
ONBOOT=yes | |
HWADDR=A4:BA:DB:37:F1:04 | |
TYPE=Ethernet | |
BOOTPROTO=static |
OlderNewer