Λογότυπο Flutter

Flutter

Κοινότητα
Lynricsy
flutter

Develops cross-platform Flutter apps and Dart packages with widgets and state management. Use when editing .dart files or pubspec.yaml, choosing Riverpod, Bloc or go_router, fixing RenderFlex overflow or unbounded-constraint errors, writing widget tests, or bridging native code via platform channels, Pigeon or FFI.

Επισκόπηση

ΕκδότηςLynricsy
ΑποθετήριοHyperSkills
Όνομα δεξιότηταςflutter
Αστέρια
26
Forks
0
Συνοδευτικά αρχεία
26
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • 26 συνοδευτικά αρχεία

    Σενάρια, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε από Lynricsy στο GitHub. Διαβάστε το πηγαίο περιεχόμενο πριν εγκαταστήσετε τη δεξιότητα.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Flutter στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/Lynricsy/HyperSkills/tree/main/skills/flutter
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Νέα δεξιότητα → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που διαβάζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Lynricsy/HyperSkills.git /tmp/HyperSkills
mkdir -p .claude/skills
cp -r /tmp/HyperSkills/skills/flutter .claude/skills/flutter
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Flutter σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Flutter μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Flutter δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλα κατά τη συνομιλία

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

flutter

Scope

Covers Flutter application and Dart package work: widget composition and layout, the three state-management stacks in real use, navigation and deep links, testing at every layer, performance, localization, networking and serialization, Dart 3 language features, analyzer/tooling hygiene, and the Dart↔native boundary (platform channels, Pigeon, FFI).

Not covered: writing native iOS/Android UI or platform SDK code beyond the channel boundary — use the apple or android skill. Other cross-platform stacks: React Native and Expo belong to the react-native skill. Also out of scope: Flutter web hosting/CI/store release, Firebase and other vendor SDKs, and game engines (Flame). For visual/UX design decisions or web frontends, use the frontend-design skill instead.

Paths below are relative to this skill's directory.

Core rules

  1. Detect the stack before touching state: read pubspec.yaml. flutter_riverpod / hooks_riverpod / riverpod_annotation → Riverpod; flutter_bloc → Bloc/Cubit; neither → ChangeNotifier + ListenableBuilder. Two state solutions in one app means two sources of truth for the same screen.
  2. In Riverpod, StateProvider, StateNotifierProvider and ChangeNotifierProvider are legacy — they survive only for migration. New code uses Notifier/AsyncNotifier behind NotifierProvider/AsyncNotifierProvider.
  3. Put ProviderScope (or the root BlocProvider) in runApp, not inside MyApp: inside the app widget, provider state dies on every root rebuild and tests observe a different tree than production.
  4. Mark every constructor const that the analyzer allows, and prefer Padding, SizedBox, ColoredBox over Container — a const subtree is skipped during rebuild; Container is rarely const-able.
  5. Extract widget classes, never Widget _buildHeader() helpers: a method rebuilds with its parent, cannot be const, and shows up as an anonymous node in DevTools.
  6. Any list that can exceed one screen uses ListView.builder/GridView.builder/ SliverList. A Column (or ListView(children: [...])) builds and lays out every child up front, even the ones nobody scrolls to.
  7. Guard BuildContext after every await: if (!context.mounted) return; before Navigator, ScaffoldMessenger, Theme.of and friends. The widget may be gone.
  8. No IO, no network calls, no setState inside build(). build runs on every dependency change and every frame that invalidates the subtree.
  9. Keep decisions out of widgets: formatting and show/hide are fine, anything that transforms or decides about data belongs in the notifier/cubit/view model, which never sees a BuildContext.
  10. Model state as an immutable value compared by value (Equatable, freezed, or a sealed hierarchy), and assign new collections (state = [...state, item]). In-place mutation leaves == true and listeners silent.
  11. Dispose what you create: controllers and FocusNodes in dispose(), provider subscriptions and timers in ref.onDispose, streams in Bloc.close.
  12. Base layout decisions on constraints (LayoutBuilder) or window size (MediaQuery.sizeOf), never on device type or orientationOf — apps run in split screen, on foldables and in resizable desktop windows.
  13. Parsing fails fast and paths stay portable. An if (raw case …) inside a parsing loop silently drops malformed input — throw FormatException naming the bad element instead. File paths go through package:path: p.join, p.split with a list pattern (or p.isWithin), p.extension, and p.posix.joinAll(p.split(p.relative(…))) for manifest or URL keys — never '$a/$b', startsWith('x/'), split('/') or replaceAll(r'\', '/') (references/dart-language.md).
  14. Finish every change with the gate: dart format on the files you changed (not dart format .; a repo-wide reformat is a commit of its own), then flutter analyze with zero issues, then flutter test. Analyzer info-level lints count; silence one only with // ignore: <code> — <reason>.

Workflows

add-feature

  • Read pubspec.yaml for the state, routing, DI and mocking packages already in use (rule 1); follow them instead of introducing a new one.
  • Place files feature-first: lib/features/<feature>/{data,domain?,ui}/. Never create top-level blocs/, widgets/, models/ buckets.
  • Define the immutable state type first (sealed hierarchy, or AsyncValue<T> when the state is exactly loading/data/error).
  • Write the service (raw API/plugin wrapper), then the repository (single source of truth, caching, domain models), then the notifier/cubit/view model.
  • Add a use case only when logic spans repositories, is genuinely complex, or has more than one caller.
  • Build the view last: ConsumerWidget/BlocBuilder/ListenableBuilder renders the state exhaustively; callbacks dispatch intents.
  • Register the route in the router; register dependencies where the app already does.
  • Write tests for the notifier/repository logic (see add-tests).
  • Gate: flutter analyze reports no issues and flutter test passes.

fix-layout-overflow

  • Read the first exception in the console, not the cascade. RenderBox was not laid out is a downstream symptom — scroll up to the real constraint violation.
  • Match the message to the fix:
    • RenderFlex overflowed → wrap the offending child in Expanded (must fit) or Flexible (may shrink); for text also consider softWrap/overflow.
    • Vertical viewport was given unbounded height → the scrollable sits in a Column; wrap it in Expanded, or give it a height, or switch the parent to CustomScrollView.
    • An InputDecorator ... cannot have an unbounded width → wrap the field in Expanded inside the Row.
    • Incorrect use of ParentDataWidget → Expanded/Flexible must be a direct child of Row/Column/Flex, Positioned of Stack.
  • If the constraint chain is unclear, run the app and inspect it in DevTools, or set debugPaintSizeEnabled = true temporarily.
  • Hot reload and resize the window through the small and large breakpoints.
  • Gate: no exception in the console and no overflow stripes at either breakpoint.

add-tests

  • Pick the layer: pure logic and repositories → test (unit); one widget or screen → flutter_test widget test; a full user journey on a device → integration_test.
  • Use the project's mocking library — mocktail unless pubspec.yaml already has mockito + build_runner. Mock at the repository or client boundary, not the class under test.
  • With mocktail, call registerFallbackValue in setUpAll for every custom type used with any(); without it the matcher throws at runtime.
  • Assert on observable behaviour: emitted states, thrown types (throwsA(isA<MyException>())), rendered widgets. A test that only replays a stub cannot fail when the code breaks.
  • For Riverpod, override the dependency provider in a fresh ProviderContainer per test and addTearDown(container.dispose); never mock a Notifier with implements.
  • Gate: flutter test (or dart test for a pure Dart package) passes, and the new test fails when the behaviour under test is broken.

upgrade-dependencies

  • Run flutter pub outdated and read the "Resolvable" column before editing anything.
  • Upgrade within constraints first (flutter pub upgrade), then majors one package per commit so a regression has one suspect.
  • On a version-solving conflict, run flutter pub deps to find who pins the old version; prefer bumping that package over a dependency_overrides entry, and delete any override you add as soon as upstream catches up.
  • Run dart fix --dry-run, review, then dart fix --apply for mechanical deprecations.
  • Gate: flutter analyze clean and flutter test green on the upgraded lockfile.

review

  • Establish the diff scope, then read the tests in it first: they state what the author believes the code does.
  • Walk the Core rules in order — they are ordered by how often each one is the actual defect.
  • Check layer discipline: no BuildContext in logic classes, no service calls from a widget, no feature reaching into another feature's internals.
  • Check lifecycle: disposal, context.mounted, provider scope and autoDispose.
  • Check the rebuild surface: missing const, whole-object watch where a select belongs, an eager list where a lazy builder belongs.
  • Report using the Output format below; run flutter analyze yourself rather than guessing which findings the analyzer already covers, and skip those it does.
  • Gate: every finding carries path:line, a one-line reason, and a concrete fix.

Topic router

TopicRead whenFile
Layers, folders, DIStructuring a project or feature, or deciding where logic livesreferences/architecture.md
RiverpodThe project depends on any riverpod packagereferences/state-riverpod.md
Bloc / CubitThe project depends on flutter_blocreferences/state-bloc.md
Provider / ChangeNotifierNo Riverpod or Bloc; official MVVM baselinereferences/state-provider-changenotifier.md
Routing, deep linksAdding routes, tabs, auth redirects, or app linksreferences/navigation.md
TestsWriting or reviewing unit, widget, integration or E2E testsreferences/testing.md
Widgets and layoutBuilding UI, adaptive layouts, or debugging constraintsreferences/widgets-layout.md
PerformanceJank, dropped frames, slow lists, memory growthreferences/performance.md
Dart 3 languagePatterns, records, sealed classes, primary constructors, package:pathreferences/dart-language.md
ToolingAnalyzer config, dart fix, coverage, pub conflictsreferences/dart-tooling.md
LocalizationAdding .arb strings, plurals, locale handlingreferences/localization.md
JSON and HTTPModels, parsing, network calls, isolatesreferences/json-http.md
Native interopMethodChannel, EventChannel, Pigeon, FFI/ffigenreferences/platform-channels-ffi.md
AccessibilitySemantics, screen readers, text scaling, contrastreferences/accessibility.md

Output format

For review (and any other report on existing code), group findings by file, ordered by severity, with no preamble:

lib/features/cart/ui/cart_page.dart
  L42 blocking - `ref.read(cartProvider)` in build() reads once and skips rebuilds.
       Use `ref.watch`.
       before: final cart = ref.read(cartProvider);
       after:  final cart = ref.watch(cartProvider);
  L88 important - ScaffoldMessenger.of(context) used after `await` without
       `if (!context.mounted) return;`.
  L15 minor - `EdgeInsets.all(8)` can be const.

lib/features/cart/data/cart_repository.dart
  ✓ pass

Severities: blocking (crash, data loss, wrong behaviour, legacy API that will be removed), important (rebuild storms, leaks, layer violations), minor (const, naming, dead code). End with a one-line verdict: ship, ship after blocking fixes, or rework.

Environment

Flutter SDK on PATH (flutter --version also reports the bundled Dart). Commands used by the workflows:

bash
flutter analyze          # zero issues is the bar; add --fatal-infos in CI
flutter test             # dart test for a pure Dart package
flutter pub outdated     # before any dependency change
dart fix --apply         # mechanical deprecation fixes
dart format <changed files>

Device-dependent steps (flutter drive, patrol test, adb, xcrun simctl) need a connected device, emulator or simulator; iOS steps additionally need macOS with Xcode.

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Flutter;

Develops cross-platform Flutter apps and Dart packages with widgets and state management. Use when editing .dart files or pubspec.yaml, choosing Riverpod, Bloc or go_router, fixing RenderFlex overflow or unbounded-constraint errors, writing widget tests, or bridging native code via platform channels, Pigeon or FFI.

Γιατί να χρησιμοποιήσετε τη δεξιότητα Flutter στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Flutter είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη Flutter στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε το https://github.com/Lynricsy/HyperSkills/tree/main/skills/flutter. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Flutter;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη Flutter;

Με όσα θέλετε. Εφόσον ένα μοντέλο υποστηρίζει δεξιότητες, μπορείτε να χρησιμοποιήσετε τη Flutter με αυτό — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama και άλλα — όλα στο TypingMind με τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Flutter;

Ναι. Δημοσιεύεται στο GitHub από τον χρήστη Lynricsy με την άδεια χρήσης MIT. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Στήστε δικό σας χώρο εργασίας AI τώρα

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇