def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { localPropertiesFile.withReader('UTF-8') { reader -> localProperties.load(reader) } }
def flutterRoot = localProperties.getProperty('flutter.sdk') if (flutterRoot == null) { throw new FileNotFoundException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") }
final path = Path() ..moveTo(0, size.height + 1) // Start at the bottom-left corner ..lineTo(0, size.height - 10.h) // Move up by 100 pixels ..quadraticBezierTo(size.width / 2, size.height - 48.h, size.width, size.height - 10.h) // Draw a quadratic bezier curve ..lineTo(size.width, size.height + 1) // Draw a line to the bottom-right corner ..close(); // Close the path