PROJ=sortator
cd /home/ws/flutter
flutter pub global activate get_cli
# Pfad muss $HOME/.pub-cache/bin enthalten!
PATH=$HOME/.pub-cache/bin:$PATH
get create:$PROJ
# Fragen beantworten, Alternativen mit Rauf-/Runter-Tasten auswählen.
cd $PROJ
flutter config --enable-linux-desktop
flutter pub global activate path
flutter pub global activate dart_bones
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'screens/sortator_screen.dart';
void main() {
runApp(GetMaterialApp(
home: SortatorScreen(),));
}
class Sortator {
final List<String> targetDirectories = [];
final List<String> categories = [];
}
import 'package:get/get.dart';
import '../controllers/sortator.dart';
class SortatorController extends GetxController {
final sortator = Sortator().obs;
}
import 'package:flutter/material.dart';
class SortatorScreen extends GetxController {
final sortator = Sortator().obs;
}