scaffold_gradient_background
A flutter package where you can create a scaffold with a gradient as a background.
- Stars
- 10
- Forks
- 4
- Last push (UTC)
- Jul 8, 2021
- Project status
- Active
Original README
English project snapshot. Visit GitHub for the latest content.
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
Dependencies used
Dependency list 2 items
- flutter
{"sdk":"flutter"} - flutter_testDevelopment
{"sdk":"flutter"}
How do I choose a repository?
Start with your use case, compare repository activity, and check the original project before adopting it.
- Search by repository name, owner or description, then narrow the results by topic.
- Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
- Read the README, license and issues on GitHub before using a project.
Sources and maintenance
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗

