Download flutter/packages/flutter_tools/templates/plugin/lib/projectName.dart.tmpl from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 632 Bytes
-
https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/packages/flutter_tools/templates/plugin/lib/projectName.dart.tmpl
- Command line
-
hf download hf://luom2645/agent-workspace/flutter/packages/flutter_tools/templates/plugin/lib/projectName.dart.tmpl
-
curl -L -o projectName.dart.tmpl https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/packages/flutter_tools/templates/plugin/lib/projectName.dart.tmpl
632 Bytes
| {{ | |
| // You have generated a new plugin project without specifying the `--platforms` | |
| // flag. A plugin project with no platform support was generated. To add a | |
| // platform, run `flutter create -t plugin --platforms <platforms> .` under the | |
| // same directory. You can also find a detailed instruction on how to add | |
| // platforms in the `pubspec.yaml` at | |
| // https://flutter.dev/to/pubspec-plugin-platforms. | |
| {{/no_platforms}} | |
| import '{{projectName}}_platform_interface.dart'; | |
| class {{pluginDartClass}} { | |
| Future<String?> getPlatformVersion() { | |
| return {{pluginDartClass}}Platform.instance.getPlatformVersion(); | |
| } | |
| } | |