Orientação gerada a partir de informações públicas. Apenas para referência.
Flutter Responsive fornece um conjunto de widgets de layout projetados para criar interfaces do usuário responsivas no Flutter, inspirado na abordagem do Bootstrap para design adaptativo. Permite que desenvolvedores criem layouts que se ajustam automaticamente a diferentes tamanhos de tela e orientações em múltiplas plataformas. O pacote simplifica a implementação de grades flexíveis, pontos de quebra e componentes responsivos sem exigir lógica personalizada complexa. Ideal para aplicativos que precisam de interfaces consistentes em dispositivos móveis, tablets, web e desktop.
Casos de uso
Construindo painéis responsivos multiplataforma
Criando layouts adaptativos para dispositivos móveis e web
Projetando interfaces de usuário escaláveis para tablets e desktops
Implementando designs responsivos baseados em grade
Garantir uma experiência de usuário consistente entre os tipos de dispositivo
Principais recursos
Ajustes de layout baseados em pontos de quebra
Sistema de grade flexível
Compatibilidade multiplataforma
padrões de design inspirados no Bootstrap
Integração fácil com projetos Flutter existentes
Indicado para
Desenvolvedores direcionados para múltiplas plataformas
Aplicativos com requisitos diversos de tamanho de tela
Considerações
Pode exigir aprender novas convenções de widget
Personalização limitada em comparação com o código de layout manual
Depende do comportamento específico da plataforma para renderização
Mais adequado para layouts de grade regulares
Não ideal para interfaces altamente dinâmicas ou não baseadas em grade
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
About flutter_responsive plugin
This plugin provides a easy and productive way to work with responsive layouts for Flutter Applications in mobile, desktop and web, allowing your layout to adapt and wrap widgets ( Container, Rows, Columns and RichText ) referent to the size of his parent element.
This project follows the GNU General Public License V3, wich means you can change the entire project the way as you want to, but you need to share your improvements back to the community.
To share your improvements, please first do a Fork of this project, change what you need to and finally do a pull request. And don´t let to share your ideas and needs on "Issues" page, even before to start your changes.
IMPORTANT NOTES:
This plugin was based on Bootstrap Web Project, but do not implement all its features (not yet).
The column's layer responsiveness is based on the size of the global screen, such as Bootstrap does.
All the widgets contains margin, padding, width, height (maximum and minimum edges), such as div Html element.
Fell free to improve and change this project.
How to Use
Add the dependency bellow into your pubspec.yaml file.
dependencies:flutter_responsive:^0.0.6#Please, ensure to use the most updated version
ResponsiveRow: Container wich contains many columns or even other widget.
OBS: Its not necessary to wrap inner widgets into a ResponsiveCol object.
ResponsiveRow(
margin: EdgeInsets.only(top: 20, bottom: 5),
children: <Widget>[
ResponsiveCol(),
ResponsiveCol(),
ResponsiveCol(),
Text('It´s fine to use another widget directly inside a ResponsiveRow')
]
),
This project is a starting point for a Flutter
plug-in package,
a specialized package that includes platform-specific implementation code for
Android and/or iOS.
For help getting started with Flutter, view our
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full API reference.
To run the full example App, wich contains performance and case tests, do the steps bellow:
Clone this project into your local machine using Github Desktop or any other git program of your preference.
Download Android Studio and the last Flutter SDK into your local machine. Configure they to works properly such as this article here
Run flutter pub get to update all the dependencies
Debug the file example/lib/main.dart or any of the unity case tests located on test folder on emulator or real device.
To run properly the performance tests, please run the app using flutter run --release