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
Is it possible for us to have a Platform widget for SliverAppBar (material) and CupertinoSliverNavigationBar?
The text was updated successfully, but these errors were encountered:
I had to make my own; this was taken from one of the examples in the repo though:
class LargeAppBarWrapper extends StatelessWidget { const LargeAppBarWrapper({ super.key, required this.title, required this.children, }); final String title; final List<Widget> children; @override Widget build(BuildContext context) { final theme = Theme.of(context); return PlatformScaffold( iosContentPadding: true, body: CustomScrollView( slivers: [ PlatformWidget( material: (context, _) => SliverAppBar.medium( backgroundColor: theme.appBarTheme.backgroundColor, title: Text( title, ), ), cupertino: (context, _) => CupertinoSliverNavigationBar( largeTitle: Text( title, ), ), ), SliverSafeArea( top: false, sliver: SliverList( delegate: SliverChildListDelegate(children), ), ), ], ), ); } }
Sorry, something went wrong.
Merge branch 'master' into stryder-dev#425-PlatformSliverAppBar
8c9d1b5
Merge pull request #427 from bookshiyi/#425-PlatformSliverAppBar
a18063d
Add PlatformSliverAppBar class with example
No branches or pull requests
Is it possible for us to have a Platform widget for SliverAppBar (material) and CupertinoSliverNavigationBar?
The text was updated successfully, but these errors were encountered: