about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authoraleksana <me@aleksana.moe>2024-05-31 20:00:49 +0800
committeraleksana <me@aleksana.moe>2024-05-31 20:11:49 +0800
commit09fa054a4d62dece3715b9813f8f24fbce29566a (patch)
tree6f25893e9b81de21209af6dac858adda00616214 /doc
parent44f3630b91602f20bd7121c3cf49f1dcef38954d (diff)
doc/dart: require to specify flutter version
Context:

@FlafyDev: I think flutter apps in nixpkgs should be required to specify
a flutter version. like flutter319 and flutter322 instead of using
flutter.

https://github.com/NixOS/nixpkgs/pull/313711
Diffstat (limited to 'doc')
-rw-r--r--doc/languages-frameworks/dart.section.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/languages-frameworks/dart.section.md b/doc/languages-frameworks/dart.section.md
index 019765f75354c..594ef7391cbb1 100644
--- a/doc/languages-frameworks/dart.section.md
+++ b/doc/languages-frameworks/dart.section.md
@@ -98,10 +98,12 @@ The function `buildFlutterApplication` builds Flutter applications.
 
 See the [Dart documentation](#ssec-dart-applications) for more details on required files and arguments.
 
+`flutter` in Nixpkgs always points to `flutterPackages.stable`, which is the latest packaged version. To avoid unforeseen breakage during upgrade, packages in Nixpkgs should use a specific flutter version, such as `flutter319` and `flutter322`, instead of using `flutter` directly.
+
 ```nix
 {  flutter, fetchFromGitHub }:
 
-flutter.buildFlutterApplication {
+flutter322.buildFlutterApplication {
   pname = "firmware-updater";
   version = "0-unstable-2023-04-30";