Is your feature request related to a problem? Please describe.
Right now you need to manually change the icon color when using the flutter package
Describe the solution you'd like
The template should use the following order:
final colorToUse = color ?? IconTheme.of(context).color
Describe alternatives you've considered
Right now I'm using a really simple builder to get the current color in the context and send to the icon
import 'package:flutter/material.dart';
class WithContextColor extends StatelessWidget {
const WithContextColor({super.key, required this.builder});
final Widget Function(Color?) builder;
@override
Widget build(BuildContext context) {
final color = IconTheme.of(context).color;
return builder(color);
}
}
Usage
NavigationDestination(
label: "Home",
icon: WithContextColor(builder: (color) => HomeSimple(color: color)),
),
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too