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
void main() { | |
WidgetsFlutterBinding.ensureInitialized(); | |
SystemChrome.setPreferredOrientations([ | |
DeviceOrientation.portraitUp, | |
DeviceOrientation.portraitDown, | |
DeviceOrientation.landscapeRight, | |
DeviceOrientation.landscapeLeft, | |
]).then(appCallback); | |
} |
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
final RiffSwitchType type; | |
RiffSwitchType get _type => type; | |
@override | |
Widget build(BuildContext context) { | |
// Dart 2 | |
/*switch (_type) { | |
case RiffSwitchType.simple: | |
return _buildSimpleSwitch(); |