Skip to content

Instantly share code, notes, and snippets.

@munificent
Created March 14, 2019 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save munificent/6844b1878f54468b99d6b4b760f75582 to your computer and use it in GitHub Desktop.
Save munificent/6844b1878f54468b99d6b4b760f75582 to your computer and use it in GitHub Desktop.
Widget build(BuildContext context) {
return Row(
children: [
IconButton(icon: Icon(Icons.menu)),
Expanded(child: title),
!isAndroid ? IconButton(icon: Icon(Icons.search)) : null,
].where((widget) => widget != null).toList(),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment