diff --git a/plugins/flutter/example/.metadata b/plugins/flutter/example/.metadata new file mode 100644 index 00000000..32d89448 --- /dev/null +++ b/plugins/flutter/example/.metadata @@ -0,0 +1,30 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled. + +version: + revision: 135454af32477f815a7525073027a3ff9eff1bfd + channel: stable + +project_type: app + +# Tracks metadata for the flutter migrate command +migration: + platforms: + - platform: root + create_revision: 135454af32477f815a7525073027a3ff9eff1bfd + base_revision: 135454af32477f815a7525073027a3ff9eff1bfd + - platform: web + create_revision: 135454af32477f815a7525073027a3ff9eff1bfd + base_revision: 135454af32477f815a7525073027a3ff9eff1bfd + + # User provided section + + # List of Local paths (relative to this file) that should be + # ignored by the migrate tool. + # + # Files that are not part of the templates will be ignored by default. + unmanaged_files: + - 'lib/main.dart' + - 'ios/Runner.xcodeproj/project.pbxproj' diff --git a/plugins/flutter/example/pubspec.lock b/plugins/flutter/example/pubspec.lock index 92297c03..35b8c427 100644 --- a/plugins/flutter/example/pubspec.lock +++ b/plugins/flutter/example/pubspec.lock @@ -62,25 +62,11 @@ packages: description: flutter source: sdk version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" flutter_test: dependency: "direct dev" description: flutter source: sdk version: "0.0.0" - lints: - dependency: transitive - description: - name: lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" matcher: dependency: transitive description: @@ -115,7 +101,7 @@ packages: path: ".." relative: true source: path - version: "0.4.6" + version: "0.5.1+3" sky_engine: dependency: transitive description: flutter @@ -171,5 +157,5 @@ packages: source: hosted version: "2.1.2" sdks: - dart: ">=2.18.5 <3.0.0" + dart: ">=2.17.0 <3.0.0" flutter: ">=2.5.0" diff --git a/plugins/flutter/example/test/widget_test.dart b/plugins/flutter/example/test/widget_test.dart new file mode 100644 index 00000000..092d222f --- /dev/null +++ b/plugins/flutter/example/test/widget_test.dart @@ -0,0 +1,30 @@ +// This is a basic Flutter widget test. +// +// To perform an interaction with a widget in your test, use the WidgetTester +// utility in the flutter_test package. For example, you can send tap and scroll +// gestures. You can also use WidgetTester to find child widgets in the widget +// tree, read text, and verify that the values of widget properties are correct. + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'package:example/main.dart'; + +void main() { + testWidgets('Counter increments smoke test', (WidgetTester tester) async { + // Build our app and trigger a frame. + await tester.pumpWidget(const MyApp()); + + // Verify that our counter starts at 0. + expect(find.text('0'), findsOneWidget); + expect(find.text('1'), findsNothing); + + // Tap the '+' icon and trigger a frame. + await tester.tap(find.byIcon(Icons.add)); + await tester.pump(); + + // Verify that our counter has incremented. + expect(find.text('0'), findsNothing); + expect(find.text('1'), findsOneWidget); + }); +} diff --git a/plugins/flutter/example/web/favicon.png b/plugins/flutter/example/web/favicon.png new file mode 100644 index 00000000..8aaa46ac Binary files /dev/null and b/plugins/flutter/example/web/favicon.png differ diff --git a/plugins/flutter/example/web/icons/Icon-192.png b/plugins/flutter/example/web/icons/Icon-192.png new file mode 100644 index 00000000..b749bfef Binary files /dev/null and b/plugins/flutter/example/web/icons/Icon-192.png differ diff --git a/plugins/flutter/example/web/icons/Icon-512.png b/plugins/flutter/example/web/icons/Icon-512.png new file mode 100644 index 00000000..88cfd48d Binary files /dev/null and b/plugins/flutter/example/web/icons/Icon-512.png differ diff --git a/plugins/flutter/example/web/icons/Icon-maskable-192.png b/plugins/flutter/example/web/icons/Icon-maskable-192.png new file mode 100644 index 00000000..eb9b4d76 Binary files /dev/null and b/plugins/flutter/example/web/icons/Icon-maskable-192.png differ diff --git a/plugins/flutter/example/web/icons/Icon-maskable-512.png b/plugins/flutter/example/web/icons/Icon-maskable-512.png new file mode 100644 index 00000000..d69c5669 Binary files /dev/null and b/plugins/flutter/example/web/icons/Icon-maskable-512.png differ diff --git a/plugins/flutter/example/web/index.html b/plugins/flutter/example/web/index.html new file mode 100644 index 00000000..41b3bc33 --- /dev/null +++ b/plugins/flutter/example/web/index.html @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + example + + + + + + + + + + diff --git a/plugins/flutter/example/web/manifest.json b/plugins/flutter/example/web/manifest.json new file mode 100644 index 00000000..096edf8f --- /dev/null +++ b/plugins/flutter/example/web/manifest.json @@ -0,0 +1,35 @@ +{ + "name": "example", + "short_name": "example", + "start_url": ".", + "display": "standalone", + "background_color": "#0175C2", + "theme_color": "#0175C2", + "description": "A new Flutter project.", + "orientation": "portrait-primary", + "prefer_related_applications": false, + "icons": [ + { + "src": "icons/Icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icons/Icon-512.png", + "sizes": "512x512", + "type": "image/png" + }, + { + "src": "icons/Icon-maskable-192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "icons/Icon-maskable-512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ] +}