Skip to content

Instantly share code, notes, and snippets.

@paldepind
Created November 12, 2023 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paldepind/e0228a41b0212ebf6fe86c6f3cd94346 to your computer and use it in GitHub Desktop.
Save paldepind/e0228a41b0212ebf6fe86c6f3cd94346 to your computer and use it in GitHub Desktop.
Cupertino dark theme
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