Uma solução responsiva e flexível projetada para se adaptar facilmente às suas necessidades, oferecendo uma experiência fluida e amigável ao desenvolvedor.
Orientação gerada a partir de informações públicas. Apenas para referência.
Flexiflow é um pacote de interface responsiva que simplifica layouts adaptativos em múltiplas plataformas. Projetado com a experiência do desenvolvedor em mente, oferece ferramentas intuitivas para criar interfaces flexíveis e escaláveis que se ajustam automaticamente a diferentes tamanhos de tela e orientações. Feito para o Flutter, suporta Android, iOS, Web, macOS, Windows e Linux, garantindo comportamento consistente entre dispositivos. Com configuração mínima e sintaxe limpa, o Flexiflow ajuda as equipes a entregar designs responsivos refinados sem soluções alternativas complexas.
Casos de uso
Construindo painéis responsivos multiplataforma
Criando formulários e layouts adaptativos
Designing dynamic content grids
Implementando interfaces do usuário fluidas para diferentes tamanhos de tela
Simplificando o desenvolvimento de layout em aplicativos multi-dispositivo
Projetos que exigem adaptação dinâmica da interface
equipes de Flutter voltadas para o frontend
Aplicativos direcionados para telas de dispositivos diversas
Considerações
Pode exigir uma curva de aprendizado para iniciantes
Documentação limitada além dos exemplos básicos
Mais adequado para aplicativos com interface pesada
Não é ideal para layouts altamente personalizados ou não padrão
Depende do pipeline de renderização do Flutter
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
Available Languages
Flexiflow is a library that enables the creation of responsive flows in your application, providing adaptable variations for various types of devices and screens.
About
Flexiflow is based on the idea of employing a foundational design as a reference point for creating responsive flows. From this fundamental design, the library enables the generation of adaptable variations for different devices such as mobile phones, tablets, and desktops. Additionally, Flexiflow adjusts the size of widgets according to various screen sizes, maintaining a constant proportion to the original design.
With Flexiflow, you gain the ability to easily develop a responsive flow for your application, eliminating the need for complex calculations and enhancing code readability. The flexibility of the library allows you to create specific variations for each type of device, resulting in a responsive flow that efficiently adapts to a variety of screen sizes. This contributes to a unique user experience, optimally tailored for each device.
Installation
To install Flexiflow, add the following dependency to your pubspec.yaml file:
dependencies:flexiflow:^VERSION
Replace the VERSION tag with the latest version of the package. You can find the most recent version of Flexiflow on the package page on Pub.dev.
After that, run the flutter pub get command to download the project dependencies.
Now, simply import Flexiflow into your project and start enjoying the benefits of simple and fast responsiveness:
import'package:flexiflow/flexiflow.dart';
Usage
Flexiflow is divided into two distinct parts: "Flexi" and "Flow". The term "Flexi" comes from flexibility, and it is responsible for providing responsiveness to your widgets. Meanwhile, the "Flow" portion, derived from the word flow, takes on the responsibility of creating variations tailored to various types of devices.
Responsiveness
To make your widgets responsive, the first step is to incorporate the Flexiflow widget into your application. The Flexiflow plays a crucial role in establishing the foundational design for your application, serving as a reference point for creating responsive flows. For this initial setup, simply provide the dimensions of the foundational design through the designSize parameter:
After this step, you can make your widgets responsive using the extensions provided by the package. To do this, simply use the variable corresponding to the desired type of responsiveness, assigning a numeric value to it:
This is especially useful to prevent responsiveness values from becoming excessively small or large, thus providing a better user experience.
The optional min and max parameters can be applied to the following extensions:
limW or limitedWidth: Limits responsiveness in relation to the width of the foundational design.
limH or limitedHeight: Establishes limits for responsiveness in relation to the height of the foundational design.
limSp or limitedSp: Sets limits for responsiveness in relation to the font size of the foundational design.
limDp or limitedDp: Controls responsiveness in relation to the device's pixel density.
limWPerc or limitedWidthPercentage: Imposes limits on responsiveness in relation to the percentage of the foundational design's width.
limHPerc or limitedHeightPercentage: Regulates responsiveness in relation to the percentage of the foundational design's height.
limSqr or limitedSquared: Applies limits to responsiveness in relation to the smaller dimension of the foundational design, often used to maintain widgets in a square format.
Flow
To create variations tailored to different types of devices, the FlowScreen widget is the ideal tool. This widget takes on the responsibility of generating specific variants for mobile phones, tablets, and desktops, providing an optimized experience on each platform.
If you want to create custom variations beyond those offered by FlowScreen, the IFlow interface provides the necessary flexibility. To implement your own flow, simply create a class that extends the IFlow interface and override the getCurrentFlow and getCurrentType methods.
After creating your custom class that extends the IFlow interface, it's easy to integrate it into the FlowBuilder. Simply pass an instance of this class as an argument to the flow parameter of the FlowBuilder: