Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. void main() => runApp(MyApp());
  4.  
  5. class MyApp extends StatelessWidget {
  6. // This widget is the root of your application.
  7. @override
  8. Widget build(BuildContext context) {
  9. return MaterialApp(
  10. title: 'Flutter Demo',
  11. home: MyHomePage(title: 'Flutter Demo Home Page'),
  12. );
  13. }
  14. }
  15.  
  16. class PageOne extends StatelessWidget{
  17. @override
  18. Widget build(BuildContext context){
  19. return Scaffold(
  20. appBar: new AppBar(title: new Text('page One'),),
  21. body: new Center(
  22. //button sini
  23.  
  24. ),
  25. );
  26. }
  27. }
  28.  
  29. class PageTwo extends StatelessWidget{
  30. @override
  31. Widget build(BuildContext context){
  32. return Scaffold(
  33. appBar: new AppBar(title: new Text('Page Two'),),
  34. body: new Center(
  35. //button sini
  36. ),
  37. );
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement