We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PlatformIconButton
PlatformTabScaffold
trailingActions
actionsIconTheme
IconThemeData
In my theme, I have:
appBarTheme: base.appBarTheme.copyWith( backgroundColor: colorScheme.primary, titleTextStyle: textTheme.displaySmall!.copyWith( color: colorScheme.onPrimary, ), centerTitle: false, titleSpacing: textTheme.displaySmall!.fontSize! / 4, actionsIconTheme: IconThemeData( color: envPrimaryContrastColor, size: textTheme.displaySmall!.fontSize, applyTextScaling: true, ), ),
Then within my HomeScreen:
HomeScreen
Widget build(BuildContext context) { return PlatformTabScaffold( appBarBuilder: (_, index) => PlatformAppBar( title: Text(widget.title), trailingActions: [ IconButton( icon: const Icon(Icons.signal_cellular_alt), onPressed: () {}, ), ], // ...
This works:
However, when using the PlatformIconButton:
Widget build(BuildContext context) { return PlatformTabScaffold( appBarBuilder: (_, index) => PlatformAppBar( title: Text(widget.title), trailingActions: [ PlatformIconButton( icon: const Icon(Icons.signal_cellular_alt), ), ], // ...
It does not work:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In my theme, I have:
Then within my
HomeScreen
:This works:
However, when using the
PlatformIconButton
:It does not work:
The text was updated successfully, but these errors were encountered: