scaffold_gradient_background
一个 Flutter 包,您可以使用渐变作为背景创建 Scaffold。
- 星标
- 10
- 复刻
- 4
- 最近推送(UTC)
- 2021年7月8日
- 项目状态
- 未归档
原始 README
以下为英文项目原文快照,最新内容请访问 GitHub。
Gradient Scaffold
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
语言Dart
使用的依赖
依赖清单 2 项
- flutter
{"sdk":"flutter"} - flutter_test开发依赖
{"sdk":"flutter"}
如何选择适合项目的代码仓?
先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
- 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
- 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
- 使用前在 GitHub 核对 README、许可证与 Issues。
来源与维护
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗

