Skip to content

[Bug]: Scaffold headerBackgroundColor override backgroundColor #369

@Shader-Killer

Description

@Shader-Killer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions