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 ↗

