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

패키지 상세v1.0.3

fullscreen

이것은 Flutter 애플리케이션에서 전체 화면을 쉽게 활성화할 수 있도록 해주는 플러터 플러그인입니다. 안드로이드 플랫폼의 세 가지 전체 화면 모드를 구현합니다.

30일 다운로드
139
좋아요
48
Pub 점수
70

패키지 설치

flutter pub add fullscreen

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

전체 화면 패키지는 안드로이드용 플러터 애플리케이션에서 전체 화면 모드를 활성화하는 것을 간소화하는 플러터 플러그인입니다. 안드로이드의 세 가지 전체 화면 모드(임베디드, 임베디드 스티키, 전체 화면)를 지원합니다. 앱 사용 중 시스템 UI 요소를 제거하여 사용자 경험을 향상시키고자 하는 개발자를 위해 설계되었으며, 복잡한 네이티브 코드 없이 전체 화면 전환을 위한 간단한 API를 제공합니다. 플러터의 플랫폼 채널과 원활하게 통합되며, 미디어 플레이어, 게임 또는 임베디드 인터페이스가 필요한 모든 앱에 적합합니다. 현재는 안드로이드에 집중하고 있으며, iOS 지원은 명시되어 있지 않습니다.

사용 사례

  • 미디어 재생 앱
  • 게이밍 인터페이스
  • 몰입형 독서 경험
  • 전체 화면 키오스크 모드
  • 프레젠테이션 애플리케이션

주요 기능

  • Android의 세 가지 풀스크린 모드를 지원합니다
  • 간단한 API 통합
  • 네이티브 코드가 필요 없습니다
  • 몰입형 경험을 위한 최적화
  • 경량이고 집중된

적합한 대상

  • 전체 화면이 필요한 Android 전용 앱
  • 네이티브 플랫폼 코드를 피하는 개발자
  • 전체 화면 몰입을 필요로 하는 앱
  • 게임 및 미디어 애플리케이션 개발자
  • 사용자 인터페이스 중심의 모바일 애플리케이션

고려 사항

  • Android 플랫폼에 한정
  • iOS 지원 없음
  • Android SDK 21 이상 필요
  • 접근성 기능에 영향을 줄 수 있습니다
  • 전체 화면 동작은 기기 제조업체에 따라 다릅니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

fullscreen

Introduction

This is a flutter plugin that makes it easy to enable fullscreen in flutter application. The implements the three fullscreen modes of the android platform and those for iOS.

Summary

Some content is best experienced fullscreen, like videos, games, image galleries, books, and slides in a presentation. This page shows how you can engage users more deeply with content in fullscreen and protect users from exiting the app accidentally.

You might be tempted to enable fullscreen mode just to maximize screen space for your app. But be mindful of how often users jump in and out of apps to check notifications, do impromptu searches, and more. Using fullscreen causes users to lose easy access to system navigation, so you should use fullscreen mode only when the benefit to the user experience goes beyond simply receiving a little extra space (such as to avoid accidental exits during a game or delivering a valuable immersive exerience for images, videos, and books).

Fullscreen options

Android offers three options to making your app fullscreen: Lean Back, Immersive, and Immersive Sticky. In all three approaches, the system bars are hidden and your activity continues to receive all touch events. The difference between them is how the user can bring the system bars back into view.

FullScreenMode.LEANBACK

The lean back mode is for fullscreen experiences in which users won't be interacting heavily with the screen, such as while watching a video.

When users want to bring back the system bars, they simply tap the screen anywhere.

FullScreenMode.EMERSIVE

The immersive mode is intended for apps in which the user will be heavily interacting with the screen. Examples are games, viewing images in a gallery, or reading paginated content, like a book or slides in a presentation.

When users need to bring back the system bars, they swipe from any edge where a system bar is hidden. By requiring this more deliberate gesture, the user's engagement with your app won't be interrupted by accidental touches and swipes.

FullScreenMode.EMERSIVE_STICKY

n the regular immersive mode, any time a user swipes from an edge, the system takes care of revealing the system bars—your app won't even be aware that the gesture occurred. So if the user might actually need to swipe from the edge of the screen as part of the primary app experience—such as when playing a game that requires lots of swiping or using a drawing app—you should instead enable the "sticky" immersive mode.

While in sticky immersive mode, if the user swipes from an edge with a system bar, system bars appear but they're semi-transparent, and the touch gesture is passed to your app so it can also respond to the gesture.

For example, in a drawing app that uses this approach, if the user wants to draw a line that begins at the very edge of the screen, swiping from the edge reveals the system bars and also starts drawing a line that begins at the very edge. The bars automatically disappear after a few seconds of no interaction or as soon as the user touches or gestures anywhere outside the system bars.

Installation

Add the following statement in your pubspec.yaml file in the dependencies section.

dependencies:
    flutter:
        sdk: flutter
    fullscreen: <latest-version>


How to use

Import the package

import 'package:fullscreen/fullscreen.dart';

To enable fullscreen mode with Sticky emersive, pass the fullscreen mode (FullScreenMode.EMERSIVE_STICKY)as an argument the the enterFullScreen method of the FullScreen class.

    // To enter FullScreenMode.EMERSIVE_STICKY, 
    await FullScreen.enterFullScreen(FullScreenMode.EMERSIVE_STICKY);

To exit fullscreen, call the exitFullScreen method of the FullScreen class

    // To exit fullscreen mode
    await FullScreen.exitFullScreen();

Getting Started with flutter?

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

카테고리

소스 저장소

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

아직 데이터가 없습니다.