Created
December 3, 2021 10:57
-
-
Save kasperpeulen/6bc842178f15338d355bc991f43023eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ThemeData useTheme() => Theme.of(useContext()); | |
class MyScaffold extends HookWidget { | |
const MyScaffold({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
final count = useState(0); | |
final theme = useTheme(); | |
return ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment