• Stars
    star
    344
  • Rank 119,558 (Top 3 %)
  • Language
    Dart
  • License
    Apache License 2.0
  • Created over 5 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Flutter widgets wrapped with gradients

Pub

Gradient Widgets

Gradient Widgets

As of ^0.5.0, shadowColor is available for gradient buttons and cards

A minimal set of Flutter widgets encased with beautiful gradients.

You can use them when your UI needs user attention/focus, , e.g., login or send actions, or important shopping item title (see Gradient Screens to get the idea 😉)

☑️ GradientText

☑️ GradientCard

☑️ GradientButton

☑️ CircularGradientButton + Shadow Color

☑️ GradientProgressIndicator

☑️ CircularGradientProgressIndicator

◻️ GradientAppBar

Installation

In your pubspec.yaml root add:

dependencies:
  gradient_widgets: ^0.6.0

then,

import 'package:gradient_widgets/gradient_widgets.dart';

Usage

Card + Gradient

GradientCard(
    gradient: Gradients.tameer,
    shadowColor: Gradients.tameer.colors.last.withOpacity(0.25),
    elevation: 8,
);

most parameters are the same as the Card.

Progress Indicator + Gradient

Gradient Widgets

must be gradient.colors.length = 2

indeterminate

GradientProgressIndicator(gradient: Gradients.rainbowBlue,);

determinate

GradientProgressIndicator(
  gradient: Gradients.rainbowBlue,
  value: 0.65,
);

Circular Progress Indicator + Gradient

Circular Gradient Progress Widgets

must be gradient.colors.length = 2

indeterminate

GradientCircularProgressIndicator(
  gradient: Gradients.aliHussien,
);

determinate

GradientCircularProgressIndicator(
  gradient: Gradients.aliHussien,
  radius: 100,
);

Normal Button + Gradient

GradientButton(
  child: Text('Gradient'),
  callback: () {},
  gradient: Gradients.backToFuture,
  shadowColor: Gradients.backToFuture.colors.last.withOpacity(0.25),
),

most parameters are the same as any *Button.

Circular Button + Gradient

CircularGradientButton(
  child: Icon(Icons.gradient),
  callback: (){},
  gradient: Gradients.rainbowBlue,
  shadowColor: Gradients.rainbowBlue.colors.last.withOpacity(0.5),
),

most parameters are the same as FloatingActionButton.

Text + Gradient

GradientText(
  'Hello',
  shaderRect: Rect.fromLTWH(0.0, 0.0, 50.0, 50.0),
  gradient: Gradients.hotLinear,
  style: TextStyle(fontSize: 40.0,),
),

all parameters are the same as the Text.


Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

More Repositories

1

Tourism-Demo

Flutter app backed by Redux, shows animations, internationalization (i18n), ClipPath, fonts and others...
Dart
292
star
2

Gradient-Screens

🌈 Gradients applied to buttons, texts and backgrounds in Flutter
Dart
108
star
3

NumberToArabicWords

converting Arabic numbers to words, e.g., 314 => ثلاثمائة و أربع عشرة.
Java
50
star
4

vibes-typeface

My first Arabic typeface designed using Glyphs app
PureBasic
15
star
5

ArabicTimeAgo

Arabic and English time ago in Swift
Shell
11
star
6

flutter-i18n

Flutter i18n for Arabic and English
Dart
9
star
7

sumo-veins-intersection

Creating a simple intersection with SUMO and integrate it with Veins
9
star
8

darine-typeface

Hand-written-like Arabic typeface
9
star
9

hexo-tag-rtl

Hexo forcing right-to-left (RTL) direction
JavaScript
8
star
10

SUMO

Simulating vehicular (car) traffic in Baghdad (Karrada In).
4
star
11

sumoStats

complementary to the YouTube video: How to generate statistics from SUMO
Python
3
star
12

NumberToArabicWordsAndroid

converting Arabic numbers to words, e.g., 314 => ثلاثمائة و أربع عشرة.
Java
2
star
13

hexo-tag-ltr

Hexo forcing left-to-right (LTR) direction
JavaScript
2
star
14

mallba

The MALLBA project is an effort to develop, in an integrated way, a library of skeletons for combinatorial optimization (including exact, heuristic and hybrid methods) that can deal with parallelism in a user-friendly and, at the same time, efficient manner.
C++
2
star
15

bluemix.github.io

my page on GitHub
HTML
2
star
16

songs-i-liked

Songs I liked while listening either to Apple Music, Spotify or 181.fm
1
star
17

oepetstore

Base module refactored for Odoo 13 to the Web Client tutorial: Customizing the web client https://www.odoo.com/documentation/13.0/howtos/web.html
Python
1
star
18

sumoSwarmed

Optimizing traffic lights cycle times using swarm intelligence
C
1
star
19

test

HTML
1
star
20

sumo-flows_and_specific-routes

Illustrating how to pick specific vehicle routes in SUMO aided with YouTube video: https://www.youtube.com/watch?v=3wsb0pSHw5E
1
star
21

bluemix

1
star
22

VideoDownloadTester

Used for testing network benchmark by downloading a video (and also any file), multiple times, and then plotting the download time spent in each iteration.
Java
1
star
23

imgPloader.io

What I learned from the book "Web Development with MongoDB and NodeJS - Second Edition"
JavaScript
1
star
24

Arabic-Sucks

A list of poorly handled Arabic language in mobile, web, and desktop applications
1
star
25

bluemix.github.io-source

personal site source files
1
star
26

react-playground-api

Using a generic LoadingView to load urls and display the result for its child compoents
JavaScript
1
star