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
--Temporarily enable xp_cmdshell | |
sp_configure 'show advanced options',1; | |
RECONFIGURE | |
GO | |
sp_configure 'xp_cmdshell',1; | |
RECONFIGURE | |
GO | |
--Declare variables |
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'; | |
void main() { | |
runApp( | |
MaterialApp( | |
home: RoutingDemo(), | |
), | |
); | |
} |
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
// Flutter code sample for AnimatedBuilder | |
// This code defines a widget that spins a green square continually. It is | |
// built with an [AnimatedBuilder] and makes use of the [child] feature to | |
// avoid having to rebuild the [Container] each time. | |
import 'package:flutter/material.dart'; | |
import 'dart:math' as math; |
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:auto_size_text/auto_size_text.dart'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:nihao/components/game_controller.dart'; | |
import 'package:nihao/constants.dart'; | |
import 'package:provider/provider.dart'; | |
class PuzzleStopwatch extends StatefulWidget { |
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'; | |
void main() { | |
final timerService = TimerService(); | |
runApp( | |
TimerServiceProvider( // provide timer service to all widgets of your app | |
service: timerService, | |
child: MyApp(), |
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 'dart:async'; | |
import 'package:flutter_circular_chart/flutter_circular_chart.dart'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( |
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:auto_size_text/auto_size_text.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:nihao/constants.dart'; | |
class PuzzleTimer extends StatefulWidget { | |
const PuzzleTimer({ | |
Key key, | |
@required this.isDesktop, |
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
class MyThreeOptions extends StatefulWidget { | |
@override | |
_MyThreeOptionsState createState() => _MyThreeOptionsState(); | |
} | |
class _MyThreeOptionsState extends State<MyThreeOptions> { | |
int _value = 1; | |
@override | |
Widget build(BuildContext context) { |
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 ColorFiltersDemo extends StatefulWidget { | |
@override | |
State<StatefulWidget> createState() => ColorFilterDemoState(); | |
} | |
class ColorFilterDemoState extends State<ColorFiltersDemo> { | |
int selectedBlendModeIndex = 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
import 'package:flutter/material.dart'; | |
import 'dart:async'; | |
class ElapsedTime { | |
final int hundreds; | |
final int seconds; | |
final int minutes; | |
ElapsedTime({ | |
this.hundreds, |