패키지, 저장소 및 앱 카테고리 검색

패키지 상세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, 웹도 지원하며, 플랫폼에 따라 기능이 다를 수 있습니다. 미디어 플레이어, 게임, 키오스크 스타일 앱과 같이 몰입형 경험을 필요로 하는 애플리케이션에 유용합니다. 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

소스 저장소

이 패키지를 사용하는 프로젝트