Created
November 12, 2023 12:35
-
-
Save paldepind/e0228a41b0212ebf6fe86c6f3cd94346 to your computer and use it in GitHub Desktop.
Cupertino dark theme
This file contains 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/cupertino.dart'; | |
void main() => runApp(TestApp()); | |
class TestApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return const CupertinoApp( | |
home: CupertinoTheme( | |
data: CupertinoThemeData(brightness: Brightness.dark), | |
child: CupertinoPageScaffold( | |
navigationBar: CupertinoNavigationBar(middle: Text("Test")), | |
child: Center(child: Text('Hello world!')), | |
))); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment