Creating an app theme To share a Theme across an entire app, provide a ThemeData to the MaterialApp constructor . If no theme is provided, Flutter creates a default theme for you. MaterialApp( title: appName, theme: ThemeData( // Define the default brightness and colors.