本文へスキップ
製品デスクトップツールTASTECAD図面の確認TASTEFILESファイル管理TASTEFTPファイル転送TASTESSHリモートワークスペースTASTEZIP圧縮と展開TASTEWINMファイル管理開発ツールTASTECODERust 統合開発環境TASTESTUDIO統合開発・テスト環境TASTEETLデータ統合(ETL)サーバーTASTEREMOTEリモートデスクトップサーバーTASTEGEO空間情報サーバーTASTEMAILメールワークスペース投資TASTESTOCK株式自動売買デスクトップアプリはじめるダウンロードドキュメント購入すべての製品
マーケットプレイス
ニュース
技術ニュース今日の開発ニュース開発ドキュメントプログラミング言語RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartWebフロントエンド フレームワークNext.jsReactVue.js · NuxtSvelteKitAngularサーバー フレームワークSpring BootDjangoFastAPIASP.NET CoreNestJS · Expressアプリ・デスクトップ フレームワークTauriFlutterReact NativeElectronアルゴリズムアルゴリズムの基礎主要アルゴリズム発展アルゴリズム実務のアルゴリズム
コミュニティプロジェクト開発ログプロンプトAIツールの問題ショーケースコミュニティガイド
協業技術移転ウェブサイト構築デスクトップアプリ構築リリース・決済パイプライン販売パートナーお問い合わせ
サービスリモートデスクトップインストールパッケージのカスタマイズ
TASTEDEV
製品

デスクトップツール

TASTECAD複雑な図面を、軽やかにひらくTASTEFILES必要なファイルだけを、最速でTASTEFTPファイルが行き交う、いちばん端正な道TASTESSHサーバーとあなたを、より確かにつなぐTASTEZIPより速くまとめ、より安全にひらくTASTEWINM2つの画面で整理する、キーボード中心のファイルマネージャー

開発ツール

TASTECODERust アプリの編集・ビルド・デバッグ・テストまでひとつのウィンドウでTASTESTUDIO編集からリモートテスト、承認した AI 修正までTASTEETL値を見ながら、データを運ぶ

サーバー

TASTEREMOTE自社サーバーで運用するリモートデスクトップTASTEGEOGeoServer 互換の空間情報サーバーを Rust で作り直しますTASTEMAILメールの主導権を、もう一度自分の手に

投資

TASTESTOCKいつ・何を。自分で決めたルールどおりに動く株式自動売買

はじめる

ダウンロード全製品の最新版ドキュメント各製品の使い方購入サブスクリプション・永久ライセンスすべての製品全製品を一覧で
すべての製品
マーケットプレイスニュース
技術

ニュース

今日の開発ニュース言語・フレームワーク・GitHub・AI の公式発表開発ドキュメント言語・フレームワーク・アルゴリズムのガイド

プログラミング言語

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

フレームワーク

Webフロントエンド フレームワークNext.jsReactVue.js · NuxtSvelteKitAngular
サーバー フレームワークSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
アプリ・デスクトップ フレームワークTauriFlutterReact NativeElectron

アルゴリズム

アルゴリズムの基礎計算量解析 · ソート · 探索 · 基本データ構造 · 木構造とヒープ主要アルゴリズムグラフ探索 · 最短経路と最小全域木 · 動的計画法 · 貪欲法 · 分割統治法 · バックトラッキング発展アルゴリズム文字列アルゴリズム · 数学と整数論 · ビット演算 · セグメント木 · Union-Find実務のアルゴリズムコーディング面接対策 · LRUキャッシュ · レート制限 · コンシステントハッシュ法
開発ドキュメントをすべて見る
コミュニティ
プロジェクトビルダーと作品を探す開発ログ決定と試行錯誤プロンプト再利用できる指示AIツールの問題Claude・Codex・Gemini の問題と回避策ショーケース完成した成果コミュニティガイドオープンにつくる方法
協業
技術移転Rust・egui でネイティブアプリを作るウェブサイト構築10言語、アカウント、ドキュメントとダウンロードデスクトップアプリ構築Rust・egui、WebView なしリリース・決済パイプライン署名・MSI・deb・rpm・AppImage・ハッシュ販売パートナー紹介して決済額の30%お問い合わせ構築・提携・投資のご相談
サービス
リモートデスクトップブラウザから自分のパソコンへインストールパッケージのカスタマイズ必要な機能だけ、設定は事前に
購入
JA
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
ログイン
ログイン
TASTEDEV

小さなツールから、より良い開発へ。

support@tastedev.netTASTEDEVを支援
製品製品ラインナップ購入ドキュメントダウンロードマーケットプレイスサポート
コミュニティプロジェクト開発ログプロンプトAIツールの問題ショーケース
ポリシー会社概要プライバシーポリシー利用規約サブスクリプション規約返金ポリシーコミュニティガイドライン
アカウントログイン新規登録
訪問者
今日
昨日
累計閲覧
商号
GXSOFT
代表者
CHOI YOUNG GU
事業者登録番号
853-44-00368
所在地
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
電話
+82-10-4404-1523
メール
whitecalvin@tastedev.net
個人情報保護責任者
CHOI YOUNG GU

© 2026 TASTEDEV製品情報は検証済みの開発ソースに基づいています。リリース・改善中

Flutter ドキュメント
Flutter
Getting Started with FlutterProject StructureCore ConceptsData and StateTestingBuilding and Deployment
ディスカッション

Flutter ガイド · 3/6

Core Concepts

この章は現在、英語でのみ提供しています。

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

この章について質問がありますか?
前の章Project Structure次の章Data 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件

人気のコメント順新しい順

ログイン · ログインするとコメントできます。