diff --git a/packages/smooth_app/.gitignore b/packages/smooth_app/.gitignore new file mode 100644 index 0000000000..0fa6b675c0 --- /dev/null +++ b/packages/smooth_app/.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/packages/smooth_app/.metadata b/packages/smooth_app/.metadata new file mode 100644 index 0000000000..80206eb5a6 --- /dev/null +++ b/packages/smooth_app/.metadata @@ -0,0 +1,10 @@ +# 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 and should not be manually edited. + +version: + revision: c5a4b4029c0798f37c4a39b479d7cb75daa7b05c + channel: stable + +project_type: app diff --git a/packages/smooth_app/README.md b/packages/smooth_app/README.md new file mode 100644 index 0000000000..d73dd051d2 --- /dev/null +++ b/packages/smooth_app/README.md @@ -0,0 +1,16 @@ +# smooth_app + +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/packages/smooth_app/android/app/src/main/kotlin/org/openfoodfacts/smooth_app/MainActivity.kt b/packages/smooth_app/android/app/src/main/kotlin/org/openfoodfacts/smooth_app/MainActivity.kt new file mode 100644 index 0000000000..503c7fc21a --- /dev/null +++ b/packages/smooth_app/android/app/src/main/kotlin/org/openfoodfacts/smooth_app/MainActivity.kt @@ -0,0 +1,6 @@ +package org.openfoodfacts.smooth_app + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() { +} diff --git a/packages/smooth_app/android/app/src/main/res/drawable-v21/launch_background.xml b/packages/smooth_app/android/app/src/main/res/drawable-v21/launch_background.xml new file mode 100644 index 0000000000..f74085f3f6 --- /dev/null +++ b/packages/smooth_app/android/app/src/main/res/drawable-v21/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/packages/smooth_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/smooth_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000..18d981003d --- /dev/null +++ b/packages/smooth_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/packages/smooth_app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/smooth_app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000..18d981003d --- /dev/null +++ b/packages/smooth_app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/packages/smooth_app/test/widget_test.dart b/packages/smooth_app/test/widget_test.dart new file mode 100644 index 0000000000..71aff0ed0a --- /dev/null +++ b/packages/smooth_app/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 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'; + +import 'package:smooth_app/main.dart'; + +void main() { + testWidgets('Counter increments smoke test', (WidgetTester tester) async { + // Build our app and trigger a frame. + await tester.pumpWidget(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/packages/smooth_app/web/favicon.png b/packages/smooth_app/web/favicon.png new file mode 100644 index 0000000000..8aaa46ac1a Binary files /dev/null and b/packages/smooth_app/web/favicon.png differ diff --git a/packages/smooth_app/web/icons/Icon-192.png b/packages/smooth_app/web/icons/Icon-192.png new file mode 100644 index 0000000000..b749bfef07 Binary files /dev/null and b/packages/smooth_app/web/icons/Icon-192.png differ diff --git a/packages/smooth_app/web/icons/Icon-512.png b/packages/smooth_app/web/icons/Icon-512.png new file mode 100644 index 0000000000..88cfd48dff Binary files /dev/null and b/packages/smooth_app/web/icons/Icon-512.png differ diff --git a/packages/smooth_app/web/index.html b/packages/smooth_app/web/index.html new file mode 100644 index 0000000000..526a81c935 --- /dev/null +++ b/packages/smooth_app/web/index.html @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + smooth_app + + + + + + + + diff --git a/packages/smooth_app/web/manifest.json b/packages/smooth_app/web/manifest.json new file mode 100644 index 0000000000..3d4d50a4e6 --- /dev/null +++ b/packages/smooth_app/web/manifest.json @@ -0,0 +1,23 @@ +{ + "name": "smooth_app", + "short_name": "smooth_app", + "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" + } + ] +}