import 'package:flutter/material.dart'; import 'page1.dart'; //TODO: use similar code later as either a changeable theme page or a settings page for your app and also implement shared preferences //change the colour of the container depending on direction of switch on the next page void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( theme: ThemeData.dark(), home: Scaffold( appBar: AppBar( title: Text('Page 1'), ), body: PageOne(), ), ); } }