16.2%
38.4%
2.2%
37.8%
-11.6%
37.5%
97.4%
9.3%
-11.4%
100%
14.1%
100%
100%
33%
14.2%
-48.2%
-46.7%
-11.6%
-82.9%
-84.4%
model.increment
trigger the counter text to increase/rebuild in this snippet https://github.com/brianegan/scoped_model/blob/master/example/lib/main.dart#L84 please? Looking at the source code, I can't seem to find anywhere in which they registered a listener to listen for changes, https://github.com/brianegan/scoped_model/blob/master/lib/scoped_model.dart
InheritedModel
to rebuild in the 2nd link
I get this error message: Error on line 39, column 5 of pubspec.yaml: A dependency may only have one source.
╷
39 │ ┌ android: "launcher_icon"
40 │ │ # ios: true
41 │ │ image_path: "assets/App_icon_HALL_v1_512x512.png"
42 │ │
43 │ │
44 │ │
45 │ │ # The following adds the Cupertino Icons font to your application.
46 │ │ # Use with the CupertinoIcons class for iOS style icons.
47 │ │ # cupertino_icons: ^1.0.2
48 │ └
╵
[ +459 ms] "flutter run" took 673ms.
[ +6 ms] pub finished with exit code 65
[ +2 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 _DefaultPub.interactively (package:flutter_tools/src/dart/pub.dart:391:7)
<asynchronous suspension>
#2 PackagesForwardCommand.runCommand (package:flutter_tools/src/commands/packages.dart:247:5)
<asynchronous suspension>
#3 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1125:27)
<asynchronous suspension>
#4 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#5 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#6 FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
<asynchronous suspension>
#7 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#8 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
<asynchronous suspension>
#9 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
<asynchronous suspension>
#10 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#11 main (package:flutter_tools/executable.dart:92:3)
<asynchronous suspension>
[ +116 ms] ensureAnalyticsSent: 110ms
[ +5 ms] Running shutdown hooks
[ +1 ms] Shutdown hooks complete
[ +1 ms] exiting with code 65
Hi everyone, I get an error when trying to use the debugger in Vscode, and only in Vscode, not Android Studio.
In vscode I am tryng to run the debugger at a the simple 'Counter app' after flutter create'.
I am running with a 'launch.json' file inside the '.vscode' folder.
The file is as follows:
{
"version": "0.2.0",
"configurations": [
{
"name": "saar_vscode_main.dart",
"type": "dart",
"request": "launch",
"cwd": "/",
"program": "lib/main.dart",
"args": [
"--flavor", "'stg'"
],
"console": "debugConsole",
"deviceId": "android",
"flutterMode": "debug",
"runTestsOnDevice": false,
}
]
}
The error thrown is :
Error when reading 'lib\main.dart': No such file or directory.
I tried the workspace solution in the link but it didn't help:
https://stackoverflow.com/questions/55180468/how-do-i-debug-a-flutter-app-in-vscode-if-the-launch-program-is-nested-deep-insi
Thanks.
Hi guys,
Would love your feedback on this.
We are working on new design and ways to improve flutter's app comprehension from users.
Feel free to give us your ideas.
name: hall_web_app
description: A new Flutter project.
flutter pub publish
. This is preferred for private packages.publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ">=2.12.0 <3.0.0"
flutter pub upgrade --major-versions
. Alternatively,flutter pub outdated
.dependencies:
flutter:
sdk: flutter
webview_flutter: ^2.3.0
flutter_native_splash: ^1.3.1
flutter_launcher_icons: "^0.9.2"
flutter_icons:
android: "launcher_icon"
ios: trues
image_path: "assets/App_icon_HALL_v1_512x512.png"
cupertino_icons: ^1.0.2
dev_dependencies:
flutter_native_splash: ^1.3.1
flutter_test:
sdk: flutter
analysis_options.yaml
file located at the root of yourflutter_lints: ^1.0.0
flutter:
uses-material-design: true
#
flutter_native_splash:
name: hall_web_app
description: A new Flutter project.The following line prevents the package from being accidentally published to
pub.dev using
flutter 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.
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.12.0 <3.0.0"Dependencies specify other packages that your package needs in order to work.
To automatically upgrade your package dependencies to the latest versions
consider running
flutter pub upgrade --major-versions
. Alternatively,dependencies can be manually updated by changing the version numbers below to
the latest version available on pub.dev. To see which dependencies have newer
versions available, run
flutter pub outdated
.dependencies:
flutter:
sdk: flutterwebview_flutter: ^2.3.0
flutter_native_splash: ^1.3.1flutter_launcher_icons: "^0.9.2"
flutter_icons:
android: "launcher_icon"
ios: trues
image_path: "assets/App_icon_HALL_v1_512x512.png"The following adds the Cupertino Icons font to your application.
Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
dev_dependencies:
flutter_native_splash: ^1.3.1flutter_test:
sdk: flutterThe "flutter_lints" package below contains a set of recommended lints to
encourage good coding practices. The lint set provided by the package is
activated in the
analysis_options.yaml
file located at the root of yourpackage. See that file for information about deactivating specific lint
rules and activating additional ones.
flutter_lints: ^1.0.0
For information on the generic Dart part of this file, see the
following page: https://dart.dev/tools/pub/pubspec
The following section is specific to Flutter.
flutter:
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:
- 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.dev/assets-and-images/#resolution-aware.
For details regarding adding assets from package dependencies, see
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
"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
- family: Trajan Pro
fonts:
- asset: fonts/TrajanPro.ttf
- asset: fonts/TrajanPro_Bold.ttf
weight: 70
@spiritandwine_twitter PLEASE USE A PASTE SITE!!!