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_web/material.dart'; | |
import 'dart:math' as math; | |
class DottedBorder extends StatelessWidget { | |
final Color color; | |
final double strokeWidth; | |
final double gap; | |
final Widget child; | |
final EdgeInsets padding; |
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'; | |
class StreamWidget<T> extends StatelessWidget { | |
final Stream<T> stream; | |
final Widget Function() onLoading; | |
final Widget Function(T) onData; | |
final Widget Function(dynamic) onError; | |
const StreamWidget({ | |
@required this.stream, |
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 'dart:html'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
enum _DragState { | |
dragging, | |
notDragging, | |
} |
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
# disable sleep | |
sudo pmset -b sleep 0; sudo pmset -b disablesleep 1 | |
# re-enable sleep | |
sudo pmset -b sleep 5; sudo pmset -b disablesleep 0 |
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
/*************************************************************************** | |
Copyright (c) Microsoft Corporation 2013. | |
This code is licensed using the Microsoft Public License (Ms-PL). You can find the text of the license here: | |
http://www.microsoft.com/resources/sharedsource/licensingbasics/publiclicense.mspx | |
Published at http://OpenXmlDeveloper.org | |
Resource Center and Documentation: http://openxmldeveloper.org/wiki/w/wiki/open-xml-sdk-for-javascript.aspx |
OlderNewer