Created
March 23, 2020 16:30
-
-
Save Andrious/a6adc3b5d12d7a605785b761f63f30e7 to your computer and use it in GitHub Desktop.
RandomWords class for the 'Write Your First App' example.
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/cupertino.dart' show Key, State, StatefulWidget; | |
//import 'package:flutter/material.dart' show Key, State, StatefulWidget; | |
import '../../../src/controller/MyApp.dart' show MyApp; | |
import 'android/home.dart' show RandomWordsAndroid; | |
import 'ios/home.dart' show RandomWordsApple; | |
class RandomWords extends StatefulWidget { | |
RandomWords({ | |
Key key, | |
this.useMaterial = false, | |
this.useCupertino = false, | |
this.switchUI = false, | |
}) : super(key: key); | |
final bool useMaterial; | |
final bool useCupertino; | |
final bool switchUI; | |
@override | |
State createState() => | |
MyApp.useMaterial ? RandomWordsAndroid() : RandomWordsApple(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment