Skip to content

Instantly share code, notes, and snippets.


ijoschek/.\lib\newPage.dart Secret

Last active Apr 7, 2019
What would you like to do?
import 'package:flutter/material.dart';
class NewPage extends StatefulWidget {
// Here will be code
_NewPageState createState() => _NewPageState();
class _NewPageState extends State<NewPage> {
// Here will be code
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("NewPage"),
body: Center(
child: Column(
children: <Widget>[
child: Text('Back To HomeScreen'),
color: Theme.of(context).primaryColor,
textColor: Colors.white,
onPressed: () => Navigator.pop(context)),
// Here will be code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment