Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- void main() => runApp(MyApp());
- class MyApp extends StatelessWidget {
- // This widget is the root of your application.
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- title: 'Flutter Demo',
- home: MyHomePage(title: 'Flutter Demo Home Page'),
- );
- }
- }
- class PageOne extends StatelessWidget{
- @override
- Widget build(BuildContext context){
- return Scaffold(
- appBar: new AppBar(title: new Text('page One'),),
- body: new Center(
- //button sini
- ),
- );
- }
- }
- class PageTwo extends StatelessWidget{
- @override
- Widget build(BuildContext context){
- return Scaffold(
- appBar: new AppBar(title: new Text('Page Two'),),
- body: new Center(
- //button sini
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement