-
-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Labels
Description
Bug Description
Scaffold headerBackgroundColor override backgroundColor
Expected Behavior
backgroundColor
Actual Behavior
headerBackgroundColor
Steps to Reproduce
run code sample
Which component is affected?
Other/Multiple
Flutter Version
3.35.5
shadcn_flutter Version
0.0.46
Platform
Web
Minimal Code Sample
import 'package:flutter/services.dart';
import 'package:shadcn_flutter/shadcn_flutter.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(systemNavigationBarColor: Colors.transparent));
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return ShadcnApp(
title: 'My App',
home: const TestPage(),
theme: ThemeData(
colorScheme: LegacyColorSchemes.darkZinc(),
radius: 0.7,
),
);
}
}
class TestPage extends StatelessWidget {
const TestPage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.yellow,
headerBackgroundColor: Colors.red,
child: SizedBox.expand(),
);
}
}Additional Context
No response
Checklist
- I have searched existing issues and this is not a duplicate
- I have provided a minimal code sample that reproduces the issue
- I am using the latest version of shadcn_flutter
Reactions are currently unavailable