diff --git a/.gitignore b/.gitignore deleted file mode 100644 index dee655c..0000000 --- a/.gitignore +++ /dev/null @@ -1,9 +0,0 @@ -.DS_Store -.dart_tool/ - -.packages -.pub/ - -build/ - -.flutter-plugins diff --git a/flutter_widgets/.gitignore b/flutter_widgets/.gitignore new file mode 100644 index 0000000..0fa6b67 --- /dev/null +++ b/flutter_widgets/.gitignore @@ -0,0 +1,46 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +**/ios/Flutter/.last_build_id +.dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies +.packages +.pub-cache/ +.pub/ +/build/ + +# Web related +lib/generated_plugin_registrant.dart + +# Symbolication related +app.*.symbols + +# Obfuscation related +app.*.map.json + +# Android Studio will place build artifacts here +/android/app/debug +/android/app/profile +/android/app/release diff --git a/.metadata b/flutter_widgets/.metadata similarity index 70% rename from .metadata rename to flutter_widgets/.metadata index 2cee405..3733535 100644 --- a/.metadata +++ b/flutter_widgets/.metadata @@ -4,5 +4,7 @@ # This file should be version controlled and should not be manually edited. version: - revision: 407030ca4d7b71c0590d02d2f3557c329bce0263 - channel: beta + revision: 02c026b03cd31dd3f867e5faeb7e104cce174c5f + channel: stable + +project_type: app diff --git a/flutter_widgets/README.md b/flutter_widgets/README.md new file mode 100644 index 0000000..cb443fd --- /dev/null +++ b/flutter_widgets/README.md @@ -0,0 +1,16 @@ +# flutter_widgets + +A new Flutter project. + +## Getting Started + +This project is a starting point for a Flutter application. + +A few resources to get you started if this is your first Flutter project: + +- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) +- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) + +For help getting started with Flutter, view our +[online documentation](https://flutter.dev/docs), which offers tutorials, +samples, guidance on mobile development, and a full API reference. diff --git a/lib/appar_widget.dart b/flutter_widgets/lib/appar_widget.dart similarity index 100% rename from lib/appar_widget.dart rename to flutter_widgets/lib/appar_widget.dart diff --git a/lib/button_widget.dart b/flutter_widgets/lib/button_widget.dart similarity index 100% rename from lib/button_widget.dart rename to flutter_widgets/lib/button_widget.dart diff --git a/lib/column_widget.dart b/flutter_widgets/lib/column_widget.dart similarity index 100% rename from lib/column_widget.dart rename to flutter_widgets/lib/column_widget.dart diff --git a/lib/container_widget.dart b/flutter_widgets/lib/container_widget.dart similarity index 100% rename from lib/container_widget.dart rename to flutter_widgets/lib/container_widget.dart diff --git a/lib/main.dart b/flutter_widgets/lib/main.dart similarity index 93% rename from lib/main.dart rename to flutter_widgets/lib/main.dart index 82df25e..2c0ed76 100644 --- a/lib/main.dart +++ b/flutter_widgets/lib/main.dart @@ -1,10 +1,10 @@ import 'package:flutter/material.dart'; -import 'package:flutter_widgets/container_widget.dart'; +import 'container_widget.dart'; import 'package:flutter_widgets/text_widget.dart'; -import 'package:flutter_widgets/appar_widget.dart'; +import 'appar_widget.dart'; import 'package:flutter_widgets/column_widget.dart'; import 'package:flutter_widgets/row_widget.dart'; -import 'package:flutter_widgets/button_widget.dart'; +import 'button_widget.dart'; import 'package:flutter_widgets/stack_widget.dart'; void main() => runApp(new MyApp()); diff --git a/lib/row_widget.dart b/flutter_widgets/lib/row_widget.dart similarity index 98% rename from lib/row_widget.dart rename to flutter_widgets/lib/row_widget.dart index 8491f2a..553599b 100644 --- a/lib/row_widget.dart +++ b/flutter_widgets/lib/row_widget.dart @@ -18,7 +18,7 @@ class RowWidget extends StatelessWidget{ children: [ FlutterLogo( size: 100.0, - colors: Colors.red, + textColor: Colors.red, ), Text("Column 2", style: bigStyle,), Container( diff --git a/lib/stack_widget.dart b/flutter_widgets/lib/stack_widget.dart similarity index 100% rename from lib/stack_widget.dart rename to flutter_widgets/lib/stack_widget.dart diff --git a/lib/text_widget.dart b/flutter_widgets/lib/text_widget.dart similarity index 100% rename from lib/text_widget.dart rename to flutter_widgets/lib/text_widget.dart diff --git a/pubspec.lock b/flutter_widgets/pubspec.lock similarity index 77% rename from pubspec.lock rename to flutter_widgets/pubspec.lock index 7eebb6b..7ffced4 100644 --- a/pubspec.lock +++ b/flutter_widgets/pubspec.lock @@ -1,5 +1,5 @@ # Generated by pub -# See https://www.dartlang.org/tools/pub/glossary#lockfile +# See https://dart.dev/tools/pub/glossary#lockfile packages: async: dependency: transitive @@ -7,35 +7,56 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.0.8" + version: "2.6.1" boolean_selector: dependency: transitive description: name: boolean_selector url: "https://pub.dartlang.org" source: hosted - version: "1.0.4" + version: "2.1.0" + characters: + dependency: transitive + description: + name: characters + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0" charcode: dependency: transitive description: name: charcode url: "https://pub.dartlang.org" source: hosted - version: "1.1.2" + version: "1.2.0" + clock: + dependency: transitive + description: + name: clock + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0" collection: dependency: transitive description: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.14.11" + version: "1.15.0" cupertino_icons: dependency: "direct main" description: name: cupertino_icons url: "https://pub.dartlang.org" source: hosted - version: "0.1.2" + version: "1.0.3" + fake_async: + dependency: transitive + description: + name: fake_async + url: "https://pub.dartlang.org" + source: hosted + version: "1.2.0" flutter: dependency: "direct main" description: flutter @@ -52,28 +73,21 @@ packages: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.3+1" + version: "0.12.10" meta: dependency: transitive description: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.1.6" + version: "1.3.0" path: dependency: transitive description: name: path url: "https://pub.dartlang.org" source: hosted - version: "1.6.2" - quiver: - dependency: transitive - description: - name: quiver - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" + version: "1.8.0" sky_engine: dependency: transitive description: flutter @@ -85,55 +99,55 @@ packages: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.4.1" + version: "1.8.1" stack_trace: dependency: transitive description: name: stack_trace url: "https://pub.dartlang.org" source: hosted - version: "1.9.3" + version: "1.10.0" stream_channel: dependency: transitive description: name: stream_channel url: "https://pub.dartlang.org" source: hosted - version: "1.6.8" + version: "2.1.0" string_scanner: dependency: transitive description: name: string_scanner url: "https://pub.dartlang.org" source: hosted - version: "1.0.4" + version: "1.1.0" term_glyph: dependency: transitive description: name: term_glyph url: "https://pub.dartlang.org" source: hosted - version: "1.0.1" + version: "1.2.0" test_api: dependency: transitive description: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.1" + version: "0.3.0" typed_data: dependency: transitive description: name: typed_data url: "https://pub.dartlang.org" source: hosted - version: "1.1.6" + version: "1.3.0" vector_math: dependency: transitive description: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.0.8" + version: "2.1.0" sdks: - dart: ">=2.0.0 <3.0.0" + dart: ">=2.12.0 <3.0.0" diff --git a/pubspec.yaml b/flutter_widgets/pubspec.yaml similarity index 63% rename from pubspec.yaml rename to flutter_widgets/pubspec.yaml index b6c4f88..3b48a2e 100644 --- a/pubspec.yaml +++ b/flutter_widgets/pubspec.yaml @@ -1,32 +1,40 @@ name: flutter_widgets -description: Demo on basic widgets for beginners at Flutter +description: A new Flutter project. + +# The following line prevents the package from being accidentally published to +# pub.dev using `pub publish`. This is preferred for private packages. +publish_to: 'none' # Remove this line if you wish to publish to pub.dev # The following defines the version and build number for your application. # A version number is three numbers separated by dots, like 1.2.43 # followed by an optional build number separated by a +. # Both the version and the builder number may be overridden in flutter # build by specifying --build-name and --build-number, respectively. -# Read more about versioning at semver.org. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html version: 1.0.0+1 environment: - sdk: ">=2.0.0-dev.68.0 <3.0.0" + sdk: ">=2.12.0 <3.0.0" dependencies: flutter: sdk: flutter + # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: ^0.1.2 + cupertino_icons: ^1.0.2 dev_dependencies: flutter_test: sdk: flutter - # For information on the generic Dart part of this file, see the -# following page: https://www.dartlang.org/tools/pub/pubspec +# following page: https://dart.dev/tools/pub/pubspec # The following section is specific to Flutter. flutter: @@ -38,14 +46,14 @@ flutter: # To add assets to your application, add an assets section, like this: # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.io/assets-and-images/#resolution-aware. + # https://flutter.dev/assets-and-images/#resolution-aware. # For details regarding adding assets from package dependencies, see - # https://flutter.io/assets-and-images/#from-packages + # https://flutter.dev/assets-and-images/#from-packages # To add custom fonts to your application, add a fonts section here, # in this "flutter" section. Each entry in this list should have a @@ -65,4 +73,4 @@ flutter: # weight: 700 # # For details regarding fonts from package dependencies, - # see https://flutter.io/custom-fonts/#from-packages + # see https://flutter.dev/custom-fonts/#from-packages diff --git a/test/widget_test.dart b/flutter_widgets/test/widget_test.dart similarity index 72% rename from test/widget_test.dart rename to flutter_widgets/test/widget_test.dart index a8ede56..df92fc5 100644 --- a/test/widget_test.dart +++ b/flutter_widgets/test/widget_test.dart @@ -1,8 +1,9 @@ // This is a basic Flutter widget test. -// To perform an interaction with a widget in your test, use the WidgetTester utility that Flutter -// provides. 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. +// +// To perform an interaction with a widget in your test, use the WidgetTester +// utility that Flutter provides. 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'; @@ -12,7 +13,7 @@ import 'package:flutter_widgets/main.dart'; void main() { testWidgets('Counter increments smoke test', (WidgetTester tester) async { // Build our app and trigger a frame. - await tester.pumpWidget(new MyApp()); + await tester.pumpWidget(MyApp()); // Verify that our counter starts at 0. expect(find.text('0'), findsOneWidget); diff --git a/flutter_widgets/web/favicon.png b/flutter_widgets/web/favicon.png new file mode 100644 index 0000000..8aaa46a Binary files /dev/null and b/flutter_widgets/web/favicon.png differ diff --git a/flutter_widgets/web/icons/Icon-192.png b/flutter_widgets/web/icons/Icon-192.png new file mode 100644 index 0000000..b749bfe Binary files /dev/null and b/flutter_widgets/web/icons/Icon-192.png differ diff --git a/flutter_widgets/web/icons/Icon-512.png b/flutter_widgets/web/icons/Icon-512.png new file mode 100644 index 0000000..88cfd48 Binary files /dev/null and b/flutter_widgets/web/icons/Icon-512.png differ diff --git a/flutter_widgets/web/index.html b/flutter_widgets/web/index.html new file mode 100644 index 0000000..668b121 --- /dev/null +++ b/flutter_widgets/web/index.html @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + flutter_widgets + + + + + + + diff --git a/flutter_widgets/web/manifest.json b/flutter_widgets/web/manifest.json new file mode 100644 index 0000000..0deddcc --- /dev/null +++ b/flutter_widgets/web/manifest.json @@ -0,0 +1,23 @@ +{ + "name": "flutter_widgets", + "short_name": "flutter_widgets", + "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" + } + ] +}