Last active
January 13, 2020 14:51
-
-
Save av/da4404a09fd8d8b9008abfd71f386a00 to your computer and use it in GitHub Desktop.
Flutter: neu
This file contains hidden or 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
| // flutter:widgets/container.dart | |
| // in Container | |
| // ... | |
| @override | |
| Widget build(BuildContext context) { | |
| Widget current = child; | |
| if (decoration != null) { | |
| current = DecoratedBox(...); | |
| } | |
| if (constraints != null) { | |
| current = ConstrainedBox(...); | |
| } | |
| // ... | |
| // More code | |
| // ... | |
| return current; | |
| } | |
| // ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment