Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand arrow is dark when default dark theme #122

Open
vovagorodok opened this issue Jan 30, 2023 · 2 comments
Open

Expand arrow is dark when default dark theme #122

vovagorodok opened this issue Jan 30, 2023 · 2 comments

Comments

@vovagorodok
Copy link

vovagorodok commented Jan 30, 2023

Arrow doesn't change color when changed to dark theme:
drawing drawing

Used default lite and dark themes:

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Ble Ota',
      theme: ThemeData.light(),
      darkTheme: ThemeData.dark(),
      home: const ScanerScreen(),
    );
  }
}
@zeddyyz
Copy link

zeddyyz commented Jan 30, 2023

I experience the same issue. Workaround is to create another widget with ExpandablePanel as main child with
theme: ExpandableThemeData( iconColor: Theme.of(context).primaryColor, ),

@vovagorodok
Copy link
Author

How to apply workaroud to:

  Widget _buildStatusWithSoftwareList() => ExpandableNotifier(
        child: Column(children: [
          _buildStatusWidget(),
          ScrollOnExpand(
            scrollOnExpand: true,
            scrollOnCollapse: false,
            child: ExpandablePanel(
              header: Padding(
                padding: const EdgeInsets.all(10),
                child: Text(tr('AllAvailableSoftwares:')),
              ),
              collapsed: const SizedBox(),
              expanded: _buildSoftwareList(),
            ),
          ),
        ]),
      );

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants