flutter_patch_tool 1.0.0
flutter_patch_tool: ^1.0.0 copied to clipboard
A Flutter/Dart tool to update yaml keys and files for patching app to app store.
example/main.dart
import 'package:flutter/material.dart';
import 'package:flutter_patch_tool/flutter_patch_tool.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Package Example',
home: Scaffold(
appBar: AppBar(title: const Text('Package Example')),
body: Center(
child: ElevatedButton(
onPressed: () async {
final path = await SetupHelper.downloadImage(
url:
"https://images.pexels.com/photos/1103970/pexels-photo-1103970.jpeg",
filename: "logo.png",
);
print("Image downloaded to: $path");
},
child: const Text('Download Logo'),
),
),
),
);
}
}