flutter_fullscreen
2.0.1, released 6 days ago by j7126.dev
API to toggle fullscreen mode on web, desktop, and mobile Flutter apps
What it does
It exposes a FullScreen class that lets you enable or disable fullscreen and listen for changes. The implementation uses nativeapi for desktop and platform channels for web and mobile.
AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need fullscreen mode on web, desktop, or mobile
- You want to react to fullscreen changes in your UI
- You prefer a single package instead of platform-specific code
Skip it when
- You only target a single platform and have custom native code
- You need advanced window management beyond fullscreen
- You require a declarative widget approach
Strengths
- Cross‑platform support (web, desktop, iOS, Android)
- Simple imperative API
- Listener mixin for easy state updates
Weaknesses
- No declarative widget wrapper
- Limited to fullscreen only, no other window controls
- Documentation is minimal
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Add dependency, call FullScreen.ensureInitialized() in main, then use FullScreen.setFullScreen() or mixin FullScreenListener
import 'package:flutter_fullscreen/flutter_fullscreen.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await FullScreen.ensureInitialized();
runApp(const MyApp());
}
// Enable fullscreen
FullScreen.setFullScreen(true);
Alternatives
Packages that do the same job and could replace flutter_fullscreen.
- yx_state
A state management library for Dart and Flutter applications.
82Compare - watch_it
State management powered by get_it to observe changes and rebuild widgets automatically.
84Compare - cached_query
Library for caching, background fetching, and managing server state in Dart and Flutter.
90Compare - dataflow
A reactive state management library for Flutter using DataStore, DataAction, and streams.
51Compare
Works with
Packages commonly used together with flutter_fullscreen: ones it builds on, ones built on it, and its own family.