- asdf v0.13.0+
$ brew install asdf
# For bash
$ echo -e "\n. $(brew --prefix asdf)/etc/bash_completion.d/asdf.bash" >> ~/.bash_profile
# For zsh
$ echo -e "\n. $(brew --prefix asdf)/asdf.sh" >> ~/.zshrc
# For fish
$ echo -e "\nsource "(brew --prefix asdf)"/asdf.fish" >> ~/.config/fish/config.fish$ asdf plugin add flutter
$ asdf plugin add ruby
$ asdf install
$ asdf reshim$ flutter --version
Flutter 3.19.2 β’ channel stable β’ https://github.com/flutter/flutter.git
Framework β’ revision 7482962148 (2 days ago) β’ 2024-02-27 16:51:22 -0500
Engine β’ revision 04817c99c9
Tools β’ Dart 3.3.0 β’ DevTools 2.31.1
// π OK$ ruby -v
ruby 3.2.1 (2023-02-08 revision 31819e82c8) [arm64-darwin23]User Snippets β dart.json
{
...
"contract": {
"prefix": "cont",
"body": [
"import 'package:freezed_annotation/freezed_annotation.dart';",
"",
"part '$TM_FILENAME_BASE.freezed.dart';",
"",
"@freezed",
"class $1UiState with _\\$$1UiState {",
" const factory $1UiState({",
" ",
" }) = _$1UiState;",
"}",
"",
"@freezed",
"sealed class $1Action with _\\$$1Action {",
" const factory $1Action.sampleAction() = SampleAction;",
"}",
"",
"@freezed",
"sealed class $1Effect with _\\$$1Effect {",
" const factory $1Effect.none() = None;",
"}",
]
}
}