パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v1.2.1

fullscreen_window

Flutterプラグインにより、ウィンドウをフルスクリーン表示できます。

AndroidiOSWebWindowsLinux
30日間ダウンロード
3.7万
いいね数
30
Pub ポイント
140

パッケージをインストール

flutter pub add fullscreen_window

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

fullscreen_window パッケージは、Windows、Linux、macOS を含む複数のプラットフォームでウィンドウのフルスクリーンモードを制御できる Flutter プラグインです。フルスクリーン状態の切り替え、ウィンドウサイズの管理、ディスプレイモードの処理など、シンプルな API を提供します。主にデスクトップ環境向けに設計されていますが、Android、iOS、Web もサポートしており、プラットフォームによって機能が異なる場合があります。メディアプレーヤー、ゲーム、キオスク形式のアプリなど、没入型体験が必要なアプリケーションに適しています。Flutter の既存の UI フレームワークとシームレスに統合されており、コミュニティによってメンテナンスされています。

用途

  • 没入型メディア再生
  • キオスクアプリケーション
  • ゲーム開発
  • フルスクリーンプレゼンテーション
  • デスクトップアプリの最適化

主な機能

  • フルスクリーンモードを切り替えます
  • クロスプラットフォーム対応
  • ウィンドウサイズの管理
  • プラットフォーム固有の振る舞いの処理
  • シンプルな API インテグレーション

適している対象

  • デスクトップアプリケーション開発者
  • メディアおよびゲームアプリ
  • インタラクティブキオスク
  • プレゼンテーションソフトウェア
  • フルスクリーン制御が必要なアプリ

注意事項

  • モバイルおよびウェブでの機能制限
  • プラットフォーム固有の特性
  • デスクトップ環境が必要です
  • システムUIと競合する可能性があります
  • すべてのアプリタイプに適しているわけではありません

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

fullscreen_window

This plugin makes your window fullscreen.

Platform Support

Windows Linux Web Android iOS
✔️ ✔️ ✔️ ✔️ ✔️
  • Web is tested on Chrome / Edge (in Windows)
  • Not tested on iOS, but I think it should work because just use the pure Flutter API and works on Android.

Quick Start

Installation

Add this to your package's pubspec.yaml file:

dependencies:
  fullscreen_window: ^1.2.0

Or

dependencies:
  fullscreen_window:
    git:
      url: https://github.com/jakky1/fullscreen_window.git
      ref: master
Functions
import 'package:fullscreen_window/fullscreen_window.dart';

FullScreenWindow.setFullScreen(true);    // enter fullscreen
FullScreenWindow.setFullScreen(false);   // exit fullscreen
Size screen_logical_size = await FullScreenWindow.getScreenSize(context);
Size screen_physical_size = await FullScreenWindow.getScreenSize(null);
Example
import 'package:flutter/material.dart';
import 'package:fullscreen_window/fullscreen_window.dart';

void main() {
  runApp(const MyApp());
}

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  String screenSizeText = "";

  void setFullScreen(bool isFullScreen) {
    FullScreenWindow.setFullScreen(isFullScreen);
  }

  void showScreenSize(BuildContext context) async {
    Size logicalSize = await FullScreenWindow.getScreenSize(context);
    Size physicalSize = await FullScreenWindow.getScreenSize(null);
    setState(() {
      screenSizeText = "Screen size (logical pixel): ${logicalSize.width} x ${logicalSize.height}\n";
      screenSizeText += "Screen size (physical pixel): ${physicalSize.width} x ${physicalSize.height}\n";
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('FullScreen example app'),
        ),
        body: Center(
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: [
              ElevatedButton(
                onPressed: () => setFullScreen(true), 
                child: const Text("Enter FullScreen"),
              ),

              const SizedBox(height: 10),
              ElevatedButton(
                onPressed: () => setFullScreen(false), 
                child: const Text("Exit FullScreen"),
              ),

              const SizedBox(height: 10),
              Builder(builder: (context) => ElevatedButton(
                onPressed: () => showScreenSize(context), 
                child: const Text("Show screen size"),
              )),

              const SizedBox(height: 10),
              if (screenSizeText.isNotEmpty) Text(screenSizeText),
            ]),
          ),
      ),
    );
  }
}

カテゴリー

依存関係

依存関係一覧 2 件

  • plugin_platform_interface^2.0.2
  • web^1.0.0

ソースリポジトリ

このパッケージを使用しているプロジェクト