Outils pour utilisateurs

Outils du site


informatique:flutter

Ceci est une ancienne révision du document !


Flutter

Le langage dart

Quelques notes sur le debuggage.

Et des Tips/Tutos/Examples.

Ma 1ère appli : CroustiWiki

Flutter documentation

Online pad

Command line

flutter create my_app
cd my_app
flutter analyze
flutter test
flutter run lib/main.dart
flutter pub get
flutter pub outdated
flutter pub upgrade

Penser à nettoyer les dossiers des projets inutilisés pour réduire le volume utilisé avec flutter clean : 779Mo → 2,6Mo

$ du -hs ./
779M	poc_flutter_tts/
$ flutter clean
$ du -hs ./
2.6M

Pour compiler la version debug

$ flutter build apk --debug

Flutter Alternatives

Kotlin Multiplatform Development

https://www.jetbrains.com/kotlin-multiplatform/

Ionic Framework

https://ionicframework.com/

The mobile SDK for the Web. An open source mobile UI toolkit for building modern, high quality cross-platform mobile apps from a single code base.

Ionic runs inside a native container using Cordova or, more recently, Capacitor.

Visual designer

Theme builder

Icons

Application & components templates

Applications faites avec Flutter

Packages / Libraries

Widgets

InApp WebView

Application state management

The Flutter Architecture Samples project demonstrates some strategies.

Bloc

Redux

Signals.dart

Getx

Provider

Riverpod

https://pub.dev/packages/riverpod

(anagram of Provider)

Storage

get_storage

A fast, extra light and synchronous key-value storage written entirely in Dart

il fonctionne très bien avec Workmanager (isolate context), le partage de données avec l'UI fonctionne 💐

Hive

Fast, Enjoyable & Secure NoSQL Database. Hive is a lightweight and buzzing-fast key-value database made for Flutter and Dart.

Drift

Drift is a reactive persistence library for Flutter and Dart, built on top of SQLite.

allowing you to run database code across isolates.

path_provider

A Flutter plugin for finding commonly used locations on the filesystem. Supports Android, iOS, Linux, macOS and Windows. Not all methods are supported on all platforms.

https://pub.dev/packages/path_provider

Preferences

shared_preferences

shared_preferences Wraps platform-specific persistent storage for simple data (NSUserDefaults on iOS and macOS, SharedPreferences on Android, etc.).

Packages pour afficher/modifier les préférences:

Dev/debug side

Settings page UI (côté utilisateur):

flutter_settings_screens

Home Widget

Local Notification

Background task

Theme

HUX an open-source state of the art UI library for Flutter 💙 - demo

Other

  • Permission
    • permission_handler provides a cross-platform (iOS, Android) API to request permissions and check their status.
  • HTTP
    • dio a HTTP client for Dart and Flutter, which supports global settings, Interceptors, FormData, aborting and canceling a request, files uploading and downloading, requests timeout, custom adapters, etc.
  • Location
  • Clipboard
    • A Flutter plugin that enables flutter apps to receive sharing photos, videos, text, urls or any other file types from another app.
informatique/flutter.1755669874.txt.gz · Dernière modification : de cyrille

Sauf mention contraire, le contenu de ce wiki est placé sous les termes de la licence suivante : CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki