Last active
April 24, 2020 07:38
-
-
Save paulallies/b36582f7afae83fa4189de5e7975bd93 to your computer and use it in GitHub Desktop.
A nav screen
This file contains hidden or 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/material.dart'; | |
class Screen extends StatelessWidget { | |
String title; | |
Screen({this.title}); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar(title: Text(title)), | |
body: Center( | |
child: Text(title), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment