flutter_web_frame
1.0.0, released 3 years ago by wisnuwiry.space
Limits content size for Flutter Web and Desktop applications.
WASM-ready
What it does
It wraps your app to constrain its maximum size and frame it on large devices such as web browsers or desktop screens. This keeps non-responsive apps focused on a specific content area with a customizable background for the whitespace.
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a Flutter Web or Desktop app that is not yet fully responsive
- You want to constrain your app UI to a mobile-like frame size on large screens
Skip it when
- Your application already has a fully responsive design built for all screen sizes
- You need native desktop window management features
Strengths
- Quickly makes non-responsive apps look focused on large screens
- Customizable maximum size, background color, and enable/disable toggle
Weaknesses
- Not documented with extensive configuration options beyond basic sizing and background color
- Does not replace a proper responsive layout design
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
not documented
FlutterWebFrame(
builder: (context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: Text('Body Text'),
),
),
);
},
maximumSize: Size(475.0, 812.0),
enabled: kIsWeb,
backgroundColor: Colors.grey,
)Alternatives
Packages that do the same job and could replace flutter_web_frame.
- responsive_framework
Automatically adapt Flutter app UI to different screen sizes and breakpoints.
50Compare