Buscar pacotes, repositórios e categorias de apps

Repositório GitHubTomic-Riedel/scaffold_gradient_background

scaffold_gradient_background

Um pacote Flutter onde você pode criar um scaffold com um gradiente como fundo.

Capa do projeto scaffold_gradient_background
Estrelas
10
Forks
4
Último push (UTC)
8 de jul. de 2021
Status do projeto
Ativo

README original

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

Gradient Scaffold

pub github license

A fully customizable scaffold widget, but which can take a gradient as its background.

Screenshots

Getting Started

This package is for setting a gradient as background for a scaffold. You have no disadvantages and can use all the functionalities of a scaffold.

How to create a simple scaffold with gradient:

Add this package to pubspec.yaml:

dependencies:
  scaffold_gradient_background:

Import the package in the class in which you want to use the scaffold with gradient:

import 'package:scaffold_gradient_background/scaffold_gradient_background.dart';

Now create a GradientScaffold widget and customize it to your liking!

GradientScaffold(
      gradient: LinearGradient(
        begin: Alignment.bottomLeft,
        end: Alignment.topRight,
        colors: [
          Color(0xFF8EC5FC),
          Color(0xFFE0C3FC),
        ],
      ),
      appBar: AppBar(
        title: Text('Linear Gradient Example'),
      ),
      body: Center(
        child: Text(
          'Hello ^^',
          style: TextStyle(
            color: Colors.white,
            fontSize: 30,
          ),
        ),
      ),
    );

That's about it. You don't need to do much more and as you can see, it works perfectly!

Personal links

GitHub Repository Twitter Medium

Tomic-Riedel GitHub avatar
Autor no GitHub

Tomic-Riedel ↗

B. Sc. IT Systems Engineering student at the Hasso Plattner Institute and Student Research Assistant at the HPI Information Systems Chair

Germany
LinguagensDart

Dependências usadas

Lista de dependências 2 itens

  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}

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 ↗