Buscar pacotes, repositórios e categorias de apps

Repositório GitHubRanaSharjeelShji/equal_space

espaçamento igual

RanaSharjeelShji/equal_space open-source repository details.

Capa do projeto espaçamento igual
Estrelas
1
Forks
0
Último push (UTC)
14 de jun. de 2024
Status do projeto
Ativo

README original

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

Equal Space

Learn More

About

Equal Space is a Flutter package that allows you stop using SizedBox for spacing between widgets. it simplifies the process of creating evenly spaced rows and columns in your Flutter applications. This package provides custom widgets, SpacedRow and SpacedColumn, which make it easy to manage spacing and alignment of child widgets.

Features

  • Customizable Spacing: Easily adjust the space between child widgets.
  • Flexible Alignment: Support for main axis and cross axis alignment.
  • Simplified Code: Reduces boilerplate code for spacing in rows and columns.

Learn More

SpacedColumn Example
class MyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return SpacedColumn(
      space: 26.0,
      mainAxisAlignment: MainAxisAlignment.center,
      mainAxisSize: MainAxisSize.min,
      crossAxisAlignment: CrossAxisAlignment.end,
      textDirection: TextDirection.rtl,
      verticalDirection: VerticalDirection.down,
      textBaseline: TextBaseline.alphabetic,
      children: [
        Container(width: 50, height: 50, color: Colors.red),
        Container(width: 50, height: 50, color: Colors.green),
        Container(width: 50, height: 50, color: Colors.blue),
      ],
    );
  }
}
SpacedRow Example
class MyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return SpacedRow(
       space: 26.0,
       mainAxisAlignment: MainAxisAlignment.center,
       mainAxisSize: MainAxisSize.min,
       crossAxisAlignment: CrossAxisAlignment.end,
       textDirection: TextDirection.rtl,
       verticalDirection: VerticalDirection.down,
       textBaseline: TextBaseline.alphabetic,
       children: [
         Container(width: 50, height: 50, color: Colors.red),
         Container(width: 50, height: 50, color: Colors.green),
         Container(width: 50, height: 50, color: Colors.blue),
       ],
    );
  }
}
Installation
flutter pub add equal_space
import 'package:equal_space/equal_space.dart';

Learn More

Explanation
  • Overview: Stop using SizedBox for adding up space in your widgets.
  • Features: You can user mainAxis * crossAxisAligments with one more propery space.
  • Benigit: Examples SpacedRow and SpacedColumn widgets shows how effective this package is.
  • Example: Instructions to run the example app.
  • Contributions: Feel free to fork the repo.
  • License: MIT License.
  • Connect with Us: Click below to visit my YouTube channel & Github.

Learn More Learn More

Rana Sharjeel Ali GitHub avatar
Autor no GitHub

Rana Sharjeel Ali ↗

LinguagensC++CMakeDartHTMLSwiftCKotlinObjective-C

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 3 itens

  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}
  • flutter_lintsDesenvolvimento^3.0.0

Como escolher um repositório para seu projeto?

Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.

  1. Busque por nome, autor ou descrição e filtre por tema.
  2. Compare estrelas, forks e envios recentes. Estrelas indicam interesse, mas não garantem qualidade.
  3. Confira o README, a licença e as issues no GitHub antes de usar o projeto.

Fontes e manutenção

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗