An open API service indexing awesome lists of open source software.

https://github.com/wisnuwiry/flutter_web_frame

Make Limit content size in Flutter Web/Desktop/PWA, Make your app that doesn't support responsiveness more focused on content. Demo: https://flutter-web-frame.vercel.app
https://github.com/wisnuwiry/flutter_web_frame

flutter flutter-plugin flutter-pwa flutter-web

Last synced: over 1 year ago
JSON representation

Make Limit content size in Flutter Web/Desktop/PWA, Make your app that doesn't support responsiveness more focused on content. Demo: https://flutter-web-frame.vercel.app

Awesome Lists containing this project

README

          

# Flutter Web Frame

[![Pub](https://img.shields.io/pub/v/flutter_web_frame.svg)](https://pub.dev/packages/flutter_web_frame)

Make the frame max width / size when on large devices such as Web or Desktop.

This is very suitable to be used to limit the size of content, if your application is not yet available a responsive version if it is run on multiple devices / platforms.

## Preview

![Preview](https://i.ibb.co/hR9j1RJ/preview.png)

## Install

Follow the instructions to install it [here](https://pub.dev/packages/flutter_web_frame)

## Example Usage

```dart
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_web_frame/flutter_web_frame.dart';

void main() {
runApp(MyAp());
}

class MyAp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return FlutterWebFrame(
builder: (context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Flutter Web Frame'),
),
body: Center(
child: Text('Body Text'),
),
),
);
},
maximumSize: Size(475.0, 812.0), // Maximum size
enabled: kIsWeb, // default is enable, when disable content is full size
backgroundColor: Colors.grey, // Background color/white space
);
}
}
```