From a02cf301c52463fcb157e506bd0d8b0dcdda5b64 Mon Sep 17 00:00:00 2001 From: Yash Lamba Date: Sun, 2 Jan 2022 22:21:00 +0530 Subject: [PATCH] Updated packages: cupertino, url_launcher, shared_preferences, provider (#194) * Updated packages: cupertino, url_launcher, shared_preferences * Updated packages: provider --- lib/main.dart | 1 - pubspec.yaml | 80 ++++++++++--------------------------------- test/widget_test.dart | 30 ---------------- 3 files changed, 19 insertions(+), 92 deletions(-) delete mode 100644 test/widget_test.dart diff --git a/lib/main.dart b/lib/main.dart index b725712..dab0ea0 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,5 +1,4 @@ import 'package:flutter/material.dart'; -import 'package:flutter/cupertino.dart'; import 'package:simulate/src/home.dart'; import 'package:provider/provider.dart'; import 'package:simulate/src/data/simulations.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index 911714f..5e7e744 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,75 +1,33 @@ name: simulate -description: A new Flutter project. +description: A collection of simulations and visualizations -# 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. -# 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.1.0 <3.0.0" + sdk: ">=2.1.0 <3.0.0" dependencies: - flutter: - sdk: flutter + flutter: + sdk: flutter - # The following adds the Cupertino Icons font to your application. - # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: ^1.0.0 - url_launcher: ^5.7.10 - provider: ^4.3.3 - shared_preferences: ^0.5.12+4 - flutter_screenutil: ^4.0.3+2 + cupertino_icons: ^1.0.4 + url_launcher: ^6.0.17 + provider: ^6.0.2 + shared_preferences: ^2.0.11 + flutter_screenutil: ^4.0.3+2 dev_dependencies: - flutter_test: - sdk: flutter + 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 - -# The following section is specific to Flutter. flutter: + uses-material-design: true - # The following line ensures that the Material Icons font is - # included with your application, so that you can use the icons in - # the material Icons class. - uses-material-design: true - - # To add assets to your application, add an assets section, like this: - assets: - - assets/simulations/ - - android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png - - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware. - - # For details regarding adding assets from package dependencies, see - # https://flutter.dev/assets-and-images/#from-packages + assets: + - assets/simulations/ + - android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png - # To add custom fonts to your application, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - fonts: - - family: Ubuntu - fonts: - - asset: fonts/Ubuntu-Regular.ttf - # - # For details regarding fonts from package dependencies, - # see https://flutter.dev/custom-fonts/#from-packages + fonts: + - family: Ubuntu + fonts: + - asset: fonts/Ubuntu-Regular.ttf diff --git a/test/widget_test.dart b/test/widget_test.dart deleted file mode 100644 index 6d6ce75..0000000 --- a/test/widget_test.dart +++ /dev/null @@ -1,30 +0,0 @@ -// 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:simulate/main.dart'; - -void main() { - testWidgets('Counter increments smoke test', (WidgetTester tester) async { - // Build our app and trigger a frame. - await tester.pumpWidget(StartScreen()); - - // 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); - }); -}