FLUTTER ECOSYSTEM

wisnuwiry/flutter_web_frame

Defina o tamanho máximo do conteúdo no Flutter Web/Desktop/PWA, torne seu aplicativo que não suporta responsividade mais focado no conteúdo. Demonstração: https://flutter-web-frame.vercel.app

Capa do projeto flutter_web_frame
Stars
16
Forks
10
Último push (UTC)
6 de jul. de 2023
Status do projeto
Ativo
Wisnu G Saputra GitHub avatar
GITHUB User

Wisnu G Saputra ↗

Product Engineer

@zero-one-groupJepara, IndonesiaSite oficial ↗
LinguagensDartHTML

Tópicos técnicos

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 3 itens
  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}
  • pedanticDesenvolvimento^1.11.1

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher README

Flutter Web Frame

Pub

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

Install

Follow the instructions to install it here

Example Usage

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
    );
  }
}