Movator: Unterschied zwischen den Versionen

Aus Info-Theke
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „= Links = * Flutter = Erzeugen = <syntaxhighlight lang=bash> PROJ=sortator cd /home/ws/flutter mkdir $PROJ cd $PROJ flutter create --project-name=$PROJ --…“)
 
Zeile 10: Zeile 10:
flutter create --project-name=$PROJ --platforms=linux,android --template=app \
flutter create --project-name=$PROJ --platforms=linux,android --template=app \
   --description="Moves and renames files into different target directories" .
   --description="Moves and renames files into different target directories" .
mkdir models controllers pages
vi pubspec.yaml
# dependencies:
#  g: ^4.6.5
flutter get pub
</syntaxhighlight>
* create a file models\sortator.dart
<syntaxhighlight lang=dart>
class Sortator {
  final List<String> targetDirectories = [];
  final List<String> categories = [];
}
</syntaxhighlight>
* create a file controller\ortator_controler.dart
<syntaxhighlight lang=dart>
class SortatorController extends GetxController {
  final sortator = Sortator().obs;
}
</syntaxhighlight>
</syntaxhighlight>

Version vom 21. August 2022, 09:04 Uhr

Links

Erzeugen

PROJ=sortator
cd /home/ws/flutter
mkdir $PROJ
cd $PROJ
flutter create --project-name=$PROJ --platforms=linux,android --template=app \
  --description="Moves and renames files into different target directories" .
mkdir models controllers pages
vi pubspec.yaml
# dependencies:
#   g: ^4.6.5
flutter get pub
  • create a file models\sortator.dart
class Sortator {
  final List<String> targetDirectories = [];
  final List<String> categories = [];
}
  • create a file controller\ortator_controler.dart
class SortatorController extends GetxController {
  final sortator = Sortator().obs;
}