adding packages

This commit is contained in:
2026-01-15 14:38:46 -08:00
parent ef86e3ab6a
commit 6869cf47e5
5253 changed files with 726695 additions and 34 deletions
+24
View File
@@ -0,0 +1,24 @@
import 'package:reflected_mustache/mustache.dart';
main() {
var source = '''
import 'package:flutter/material.dart';
class {{className}} extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
);
}
}
''';
var template = new Template(source, name: 'template-filename.html');
final String output = template.renderString(
{'className': 'FlutterWidget'},
);
print(output);
}
+24
View File
@@ -0,0 +1,24 @@
// Copyright 2017 Google Inc.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
import 'dart:async';
import 'dart:io';
import 'package:ngflutter/src/command_runner.dart';
import 'package:args/command_runner.dart';
Future main(List<String> args) async {
var runner = new NgDartCommanderRunner();
try {
await runner.run(args);
} on UsageException catch (error) {
print(error);
print(runner.usage);
// Exit code 64 indicates a usage error.
Future.wait([stdout.close(), stderr.close()]).then((_) => exit(64));
}
}