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 HomeScreen extends StatefulWidget { | |
@override | |
createState() => _HomeScreen(); | |
} | |
class _HomeScreen extends State<HomeScreen> { | |
Widget get _scrollView { | |
return LayoutBuilder( | |
builder: (BuildContext context, BoxConstraints viewportConstraints) { | |
return SingleChildScrollView( |
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'; | |
main() => runApp(new CupertinoApp( | |
home: App() | |
) | |
); | |
class App extends StatefulWidget { | |
@override | |
State<StatefulWidget> createState() { |
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'; | |
main() => runApp(new CupertinoApp( | |
home: App() | |
) | |
); | |
class App extends StatefulWidget { | |
@override | |
State<StatefulWidget> createState() { |
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'; | |
main() => runApp(new CupertinoApp( | |
home: App() | |
) | |
); | |
class App extends StatelessWidget { | |
Widget build(BuildContext context) { | |
return Column(children: [ |
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'; | |
main() => runApp(new CupertinoApp( | |
home: App() | |
) | |
); | |
class App extends StatelessWidget { | |
Widget build(BuildContext context) { | |
return SingleChildScrollView( |
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'; | |
main() => runApp(new CupertinoApp( | |
home: HomeScreen() | |
) | |
); | |
class HomeScreen extends StatelessWidget { | |
Widget get _list { | |
return GridView.count( |
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'; | |
main() => runApp(new CupertinoApp( | |
home: HomeScreen() | |
) | |
); | |
class HomeScreen extends StatelessWidget { | |
Widget get _list { | |
return GridView.count( |
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
@override | |
Widget build(BuildContext context) { | |
return BlocProvider( | |
create: (BuildContext context) { | |
_welcomeBloc = WelcomeBloc(); | |
_welcomeBloc.add(WelcomeFetch()); | |
return _welcomeBloc; | |
}, | |
child: CupertinoPageScaffold(child: BlocBuilder<WelcomeBloc, WelcomeState>( | |
builder: (context, state) { |
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 Foo { | |
Foo(){ | |
print("FOO"); | |
} | |
} | |
class Bar extends Foo { | |
Bar(){ | |
print("BAR"); | |
} |
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 Foo { | |
Foo(){ | |
print("FOO"); | |
} | |
} | |
class Bar extends Foo { | |
Bar(){ | |
print("BAR"); | |
} |
OlderNewer