Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/carllosnc/expandy

Flutter expansor component
https://github.com/carllosnc/expandy

flutter ui ui-components

Last synced: 11 days ago
JSON representation

Flutter expansor component

Awesome Lists containing this project

README

        

# 🏋 Expandy

![Static Badge](https://img.shields.io/badge/Flutter_package-blue)
[![Expandy](https://github.com/carllosnc/expandy/actions/workflows/dart.yml/badge.svg)](https://github.com/carllosnc/expandy/actions/workflows/dart.yml)

| Example |
| --------------------------------------- |
| |

## Install

`pubspec.yml`
```yml
dependencies:
imgy:
git:
url: https://github.com/carllosnc/expandy.git
```

## Usage

```dart
Expandy(
title: "What is Flutter?",
children: [

// -- Content --

Image.network(
"https://pbs.twimg.com/media/FKNlhKZUcAEd7FY?format=jpg&name=4096x4096",
width: double.infinity,
height: 150,
fit: BoxFit.cover,
),
const SizedBox(height: 10),
Padding(
padding: const EdgeInsets.all(15),
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Text(
"Flutter is an open source framework by Google for building beautiful, natively compiled, multi-platform applications from a single codebase.",
),
const SizedBox(height: 10),
FilledButton(
onPressed: () {},
child: const Text('Read more'),
)
],
),
),
],
),

```

## Properties

| Name | Type | Description |
| ----------------- | -------------- | ---------------------------- |
| `children` | `List` | content |
| `title` | `String` | title |
| `backgroundColor` | `Color` | main color |
| `titleStyle` | `TextStyle` | title customization |
| `borderRadius` | `Double` | main container border radius |
| `titlePadding` | `EdgeInserts` | title paddign |

---

Carlos Costa 👁 2023