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
| allprojects { | |
| repositories { | |
| google() | |
| mavenCentral() | |
| } | |
| } | |
| rootProject.buildDir = '../build' | |
| subprojects { | |
| afterEvaluate { project -> |
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
| allprojects { | |
| repositories { | |
| google() | |
| mavenCentral() | |
| } | |
| } | |
| rootProject.buildDir = '../build' | |
| subprojects { | |
| afterEvaluate { project -> |
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
| extension StringExtension on String { | |
| String get svg => 'assets/images/svg/$this.svg'; | |
| String get png => 'assets/images/png/$this.png'; | |
| } | |
| // Then you can do this | |
| SvgPicture.asset( | |
| 'back'.svg, | |
| height: 16, | |
| width: 16, |