Vai al contenuto principale
ProdottiStrumenti desktopTASTECADVisualizzazione disegniTASTEFILESGestione fileTASTEFTPTrasferimento fileTASTESSHSpazio di lavoro remotoTASTEZIPCompressione ed estrazioneTASTEWINMGestione fileStrumenti per sviluppatoriTASTECODEAmbiente di sviluppo integrato per RustTASTESTUDIOAmbiente integrato di sviluppo e testTASTEETLIntegrazione dati (ETL)ServerTASTEREMOTEServer di desktop remotoTASTEGEOServer geospazialeTASTEMAILSpazio di lavoro emailInvestimentiTASTESTOCKApp desktop di trading automatico azionarioIniziaDownloadDocumentazioneAcquistaTutti i prodotti
Marketplace
Notizie
TecnologiaNotizieNotizie di sviluppo di oggiDocumentazioneLinguaggi di programmazioneRustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartFramework frontend webNext.jsReactVue.js · NuxtSvelteKitAngularFramework serverSpring BootDjangoFastAPIASP.NET CoreNestJS · ExpressFramework per app e desktopTauriFlutterReact NativeElectronAlgoritmiBasi degli algoritmiAlgoritmi fondamentaliAlgoritmi avanzatiAlgoritmi pratici
CommunityProgettiLog di sviluppoPromptProblemi degli strumenti di IAVetrinaGuida alla community
CollaboraTrasferimento tecnicoRealizzazione del sito webRealizzazione di app desktopPipeline di rilascio e pagamentoPartner commercialeContatti
ServiziDesktop remotoPacchetti di installazione su misura
TASTEDEV
Prodotti

Strumenti desktop

TASTECADApri con leggerezza anche i disegni più complessiTASTEFILESSolo i file che servono, alla massima velocitàTASTEFTPLa via più ordinata per i tuoi fileTASTESSHUn legame più solido tra te e i tuoi serverTASTEZIPComprimi più veloce, estrai più sicuroTASTEWINMUn file manager a due pannelli pensato per la tastiera

Strumenti per sviluppatori

TASTECODEModifica, compila, esegui il debug e testa app Rust in un'unica finestraTASTESTUDIODalla modifica ai test remoti e alle correzioni IA approvateTASTEETLSposta i dati guardando i valori

Server

TASTEREMOTEUn desktop remoto che gira sul tuo serverTASTEGEOUn server geospaziale compatibile con GeoServer, ricostruito in RustTASTEMAILRiprendi il controllo della tua posta

Investimenti

TASTESTOCKTrading automatico azionario secondo le regole che decidi tu: quando e che cosa

Inizia

DownloadUltime versioni di ogni prodottoDocsCome usare ogni prodottoAcquistaAbbonamenti e licenze perpetueTutti i prodottiTutti i prodotti a colpo d’occhio
Tutti i prodotti
MarketplaceNotizie
Tecnologia

Notizie

Notizie di sviluppo di oggiAnnunci ufficiali su linguaggi, framework, GitHub e IADocumentazioneGuide a linguaggi, framework e algoritmi

Linguaggi di programmazione

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

Framework

Framework frontend webNext.jsReactVue.js · NuxtSvelteKitAngular
Framework serverSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
Framework per app e desktopTauriFlutterReact NativeElectron

Algoritmi

Basi degli algoritmiAnalisi della complessità · Ordinamento · Ricerca · Strutture dati di base · Alberi e heapAlgoritmi fondamentaliVisita dei grafi · Cammini minimi e alberi ricoprenti · Programmazione dinamica · Algoritmi greedy · Divide et impera · BacktrackingAlgoritmi avanzatiAlgoritmi sulle stringhe · Matematica e teoria dei numeri · Manipolazione dei bit · Alberi di segmenti · Union-FindAlgoritmi praticiStrategia per colloqui di programmazione · Cache LRU · Rate limiting · Hashing consistente
Tutta la documentazione di sviluppo
Community
ProgettiScopri sviluppatori e lavoriLog di sviluppoDecisioni e lezioni appresePromptIstruzioni riutilizzabiliProblemi degli strumenti di IAProblemi e alternative di Claude, Codex, GeminiVetrinaRisultati completatiGuida alla communityCome sviluppiamo in modo aperto
Collabora
Trasferimento tecnicoApp native in Rust ed eguiRealizzazione del sito web10 lingue, account, documentazione e downloadRealizzazione di app desktopRust ed egui, senza WebViewPipeline di rilascio e pagamentoFirma, MSI, deb, rpm, AppImage, hashPartner commercialeConsigliaci e ricevi il 30%ContattiSviluppo, partnership e investimenti
Servizi
Desktop remotoRaggiungi il tuo computer dal browserPacchetti di installazione su misuraSolo il necessario, impostazioni precaricate
Acquista
IT
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
Accedi
Accedi
TASTEDEV

Dai piccoli strumenti a uno sviluppo migliore.

support@tastedev.netSostieni TASTEDEV
ProdottiGamma di prodottiAcquistaDocsDownloadMarketplaceAssistenza
CommunityProgettiLog di sviluppoPromptProblemi degli strumenti di IAVetrina
NormeChi siamoInformativa sulla privacyTermini di servizioCondizioni di abbonamentoRimborsiLinee guida della community
AccountAccediRegistrati
Visitatori
Oggi
Ieri
Visualizzazioni totali
Società
GXSOFT
Rappresentante
CHOI YOUNG GU
Numero di registrazione
853-44-00368
Indirizzo
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
Telefono
+82-10-4404-1523
E-mail
whitecalvin@tastedev.net
Responsabile privacy
CHOI YOUNG GU

© 2026 TASTEDEVLe informazioni sui prodotti si basano su fonti di sviluppo verificate.Rilasciato · in miglioramento

Documentazione di Flutter
Flutter
Getting Started with FlutterProject StructureCore ConceptsData and StateTestingBuilding and Deployment
Discussioni

Guida a Flutter · 3/6

Core Concepts

Per ora questo capitolo è disponibile solo in inglese.

The starting point for understanding Flutter is that everything is a widget. Text, buttons, padding, alignment, whole screens and the app itself are all widgets, and you build UIs by composing small widgets into larger ones. This chapter covers the two kinds of widgets, the build method, layout, the design libraries and navigation.

Widgets and the widget tree

A widget is a lightweight, immutable description of how part of the UI should look. When state changes, Flutter builds a new widget tree, compares it with the previous one and repaints only what actually changed, so creating widgets often is cheap.

Flutter does not use the platform's native UI controls. Its own rendering engine draws every pixel, which keeps the UI consistent across platforms and makes custom designs and animations straightforward.

StatelessWidget and StatefulWidget

A StatelessWidget renders purely from the values it receives in its constructor; it has no data of its own that changes.

class Greeting extends StatelessWidget {
  const Greeting({super.key, required this.name});

  final String name;

  @override
  Widget build(BuildContext context) {
    return Text('Hello, $name', style: Theme.of(context).textTheme.headlineSmall);
  }
}

A StatefulWidget holds state that changes over time. It is split into the widget class and a State class, and every state change must happen inside setState so Flutter knows to rebuild.

class Counter extends StatefulWidget {
  const Counter({super.key});

  @override
  State<Counter> createState() => _CounterState();
}

class _CounterState extends State<Counter> {
  int _count = 0;

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisSize: MainAxisSize.min,
      children: [
        Text('Pressed $_count times'),
        FilledButton(
          onPressed: () => setState(() => _count++),
          child: const Text('Add'),
        ),
      ],
    );
  }
}

The State object survives when its widget is rebuilt. Do one-time setup in initState and release controllers and subscriptions in dispose.

The build method and BuildContext

build returns the widgets that describe the UI, and it may run many times as state changes. Keep it cheap: no network calls or heavy computation, just turn data you already have into widgets.

BuildContext is the widget's location in the tree. Use it to look up information from ancestors, as in Theme.of(context), MediaQuery.sizeOf(context) or Navigator.of(context). Marking widgets that never change as const lets Flutter skip rebuilding them.

Layout widgets

Domande su questo capitolo?
Capitolo precedenteProject StructureCapitolo successivoData and State

Layout in Flutter is done with widgets too:

WidgetPurpose
Row, ColumnLay out children horizontally or vertically
Expanded, FlexibleShare remaining space inside a Row or Column
Stack, PositionedOverlap widgets
Padding, SizedBox, Center, AlignSpacing, size and alignment
ContainerPadding, background, border and size in one
ListView, GridViewScrollable lists and grids

The core rule is: constraints go down, sizes go up, and the parent sets the position. A parent tells its child the minimum and maximum size allowed, the child picks a size within that range, and the parent decides where to place it.

Widget buildProfile() {
  return Padding(
    padding: const EdgeInsets.all(16),
    child: Row(
      children: [
        const CircleAvatar(radius: 24, child: Icon(Icons.person)),
        const SizedBox(width: 12),
        Expanded(
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: const [
              Text('Jane Doe', style: TextStyle(fontWeight: FontWeight.bold)),
              Text('Flutter developer'),
            ],
          ),
        ),
        IconButton(onPressed: () {}, icon: const Icon(Icons.more_vert)),
      ],
    ),
  );
}

For long lists, use ListView.builder so only the visible items are built.

Material and Cupertino

Flutter ships two design libraries. Material follows Google's Material Design (Material 3 by default) with MaterialApp, Scaffold, AppBar, FilledButton and more. Cupertino provides iOS-style widgets such as CupertinoApp, CupertinoButton and CupertinoNavigationBar.

MaterialApp(
  title: 'Todos',
  theme: ThemeData(
    colorScheme: ColorScheme.fromSeed(seedColor: Colors.indigo),
  ),
  darkTheme: ThemeData(
    colorScheme: ColorScheme.fromSeed(seedColor: Colors.indigo, brightness: Brightness.dark),
  ),
  home: Scaffold(
    appBar: AppBar(title: const Text('Todos')),
    body: const Center(child: Text('Nothing to do yet')),
    floatingActionButton: FloatingActionButton(
      onPressed: () {},
      child: const Icon(Icons.add),
    ),
  ),
);

You can mix both libraries in one app, and adaptive constructors such as Switch.adaptive change their look to match the platform.

Navigation

Basic navigation is handled by Navigator, a stack of routes: push adds a screen on top and pop returns to the previous one.

// Go to the detail screen
Navigator.of(context).push(
  MaterialPageRoute(builder: (context) => const DetailScreen()),
);

// Go back
Navigator.of(context).pop();

For URL-based routing, deep links and browser address bar support, many apps use the go_router package maintained by the Flutter team.

Summary

  • Everything on screen is a widget, and UIs are built by composing widgets.
  • Use StatelessWidget when nothing changes, and StatefulWidget with setState when it does.
  • build runs often, so keep it light and mark unchanging widgets const.
  • Combine layout widgets such as Row, Column, Stack and Expanded with Material or Cupertino widgets.
  • Hot reload lets you refine widgets and see the result immediately.

0 commenti

Commenti principaliPrima i più recenti

Accedi · Accedi per lasciare un commento.