• Stars
    star
    160
  • Rank 228,049 (Top 5 %)
  • Language
    Dart
  • License
    BSD 3-Clause "New...
  • Created almost 6 years ago
  • Updated over 2 years ago

Reviews

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

Repository Details

๐Ÿ‘†๐Ÿป Builds indication marks for PageView.

PageViewIndicator Pub Package

Builds indication marks for PageView.

Import

import 'package:page_view_indicator/page_view_indicator.dart';

Usage

Default Material behavior

return PageViewIndicator(
  pageIndexNotifier: pageIndexNotifier,
  length: length,
  normalBuilder: (animationController, index) => Circle(
        size: 8.0,
        color: Colors.black87,
      ),
  highlightedBuilder: (animationController, index) => ScaleTransition(
        scale: CurvedAnimation(
          parent: animationController,
          curve: Curves.ease,
        ),
        child: Circle(
          size: 12.0,
          color: Colors.black45,
        ),
      ),
);

Example 1


Custom animations

return PageViewIndicator(
  pageIndexNotifier: pageIndexNotifier,
  length: length,
  normalBuilder: (animationController, index) => Circle(
        size: 8.0,
        color: Colors.black87,
      ),
  highlightedBuilder: (animationController, index) => ScaleTransition(
        scale: CurvedAnimation(
          parent: animationController,
          curve: Curves.ease,
        ),
        child: Circle(
          size: 8.0,
          color: Colors.white,
        ),
      ),
);

Example 2


Custom icons

It's not just about dots!

return PageViewIndicator(
  pageIndexNotifier: pageIndexNotifier,
  length: length,
  normalBuilder: (animationController, index) => ScaleTransition(
        scale: CurvedAnimation(
          parent: animationController,
          curve: Curves.ease,
        ),
        child: Icon(
          Icons.favorite,
          color: Colors.black87,
        ),
      ),
  highlightedBuilder: (animationController, index) => ScaleTransition(
        scale: CurvedAnimation(
          parent: animationController,
          curve: Curves.ease,
        ),
        child: Icon(
          Icons.star,
          color: Colors.white,
        ),
      ),
);

Example 3

Changing the space bettwen the indicators

You can change the padding around the indicators using the indicatorPadding property:

return PageViewIndicator(
  pageIndexNotifier: pageIndexNotifier,
  length: length,
  indicatorPadding: const EdgeInsets.all(4.0)
  ...

Default is const EdgeInsets.all(8.0).

More Repositories

1

siler

โšก Flat-files and plain-old PHP functions rockin'on as a set of general purpose high-level abstractions.
PHP
1,127
star
2

encrypt

๐Ÿ”’ A set of high-level APIs over PointyCastle for two-way cryptography.
Dart
323
star
3

swoole-futures

โณ Futures, Streams & Async/Await for PHP's Swoole asynchronous run-time.
PHP
105
star
4

Docktober

๐Ÿ‚ Simple: Docker + OctoberCMS
56
star
5

hyperf-doctrine

๐ŸŽฒ This project provides an integration for the Doctrine ORM and the Hyperf framework.
PHP
52
star
6

password-dart

A set of high-level APIs over PointyCastle and CryptoUtils to hash and verify passwords securely.
Dart
49
star
7

ReduRx

๐Ÿ‘Œ A thin layer of a Redux-based state manager on top of RxDart
Dart
41
star
8

observable_state

๐Ÿ”ญ Flutter's State Manager for Reactive Apps in a Centralized and Predictable container.
Dart
39
star
9

aws-lambda-swoole-runtime

ฮป Run PHP Coroutines & Fibers as-a-Service on the AWS Lambda.
PHP
38
star
10

awesome-payments-br

Awesome list of payment gateways in Brazil
38
star
11

dwoole

โš™๏ธ Docker image for Swoole apps with Composer, auto-restart on development and a production-ready version.
PHP
32
star
12

my-awesome-frontend

๐ŸŽˆ Just one link per motivation
30
star
13

up-n-running-k8s

๐Ÿ’  Step-by-step guide of a custom and universal setup for plain VPSs or bare-metal servers using free and open tools.
30
star
14

ippo

Immutable, Statically-typed, Cloneable and Serializable Auto-generated Plain-old PHP Objects
PHP
29
star
15

Flutter-ReduRx

๐ŸŽฏ Flutter bindings for ReduRx.
Dart
25
star
16

meteor-redux

Meteorux? Reduxor? Let's find out!
JavaScript
24
star
17

request-callback

โžฐ Swoole request callback for PSR compliant handlers.
PHP
24
star
18

redact-sensitive

๐Ÿ™ˆ A Monolog processor that protects sensitive data from miss logging
PHP
22
star
19

swoole-postgresql-doctrine-driver

๐Ÿ”Œ A Doctrine DBAL Driver implementation on top of Swoole Coroutine PostgreSQL client
PHP
22
star
20

kafka-phplayground

๐ŸŽธ Just some fun with Kafka, PHP and Swoole
PHP
20
star
21

inmana-php

๐Ÿš€ Developing Rocketseat's Next Level Week (NLW#05) Application using PHP/Swoole + Hyperf
PHP
20
star
22

create-siler-app

๐Ÿงฑ Set up a modern Siler app by running one command.
PHP
16
star
23

intel-codenames-picker

๐Ÿค” Pick a random Intel codename for you next project!
JavaScript
16
star
24

oc-websockets

Add real-time features to your OctoberCMS project.
PHP
15
star
25

shape

Run-time type checks against plain old PHP arrays
PHP
14
star
26

rustancean-radar

๐Ÿฆ€ A fearless approach to Rocketseat's OminiStack week.
Rust
14
star
27

swoole-irc-client

๐Ÿ’ฌ Swoole based IRC (Internet Relay Chat) Client
PHP
14
star
28

Fusic

๐ŸŽต Music with F#: The Language and theย Note
F#
13
star
29

rphc

PHP-to-PHP RPC Framework
PHP
12
star
30

nginxless

PoC of Swoole serving PHP-FPM requests for popular frameworks like Laravel & WordPress.
PHP
9
star
31

The-Minimal-React

Before create-react-app was cool
JavaScript
9
star
32

be-the-hero

OminiStack week v11.0... but in Rust! ๐Ÿฆ€
Rust
8
star
33

php-go-scylladb

๐Ÿ‘ป Proof of concept on making CQL queries to ScyllaDB from PHP using Spiral's Goridge and Go's shard-aware driver.
PHP
8
star
34

publican

๐Ÿง” The package that will help you out with Dart's Pub ๐ŸŽฏ
Dart
8
star
35

php-algebraic-effects

๐Ÿฅ“ PoC of Algebraic Effects in PHP programming language
PHP
7
star
36

nanoroku

โš›๏ธ Hyperf's Nano + Salesforce's Heroku
PHP
7
star
37

swoole-mutex

๐Ÿšฆ Mutual exclusion abstractions for PHP's Swoole concurrency run-time.
PHP
7
star
38

closure-chain

โ›“๏ธ Chain of responsibility pattern for your Closures
PHP
7
star
39

result

๐ŸŽ Result provides an alternative error handling mechanism, avoiding throwing exceptions or using nulls.
PHP
7
star
40

swoole-graphql-api

Building a GraphQL API on top of Swoole.
PHP
7
star
41

newrelic-telemetry-sdk-php

Unofficial PHP library for sending telemetry data to New Relic.
PHP
7
star
42

rust-snake

๐Ÿ Learning Rust doing a Snake game with the help of SDL2.
Rust
6
star
43

oc-minimal-react

Get started with React on OctoberCMS.
JavaScript
6
star
44

tracing-nano

๐Ÿ”ญ Proof of concept on adding observability features (tracing and metrics) to a Nano microservice (using existing Hyperf components).
PHP
5
star
45

oc-backendusertree

Adds SimpleTree trait functionality to OctoberCMS's backend users.
PHP
5
star
46

viewi-swoole

๐Ÿš€ Serving a Viewi application with a Swoole server.
PHP
5
star
47

vlog

โœŒ๏ธ Building a 150 KB web blog in V & SQLite
V
5
star
48

cheer-your-title

Sometimes your <title> tag needs some joy
JavaScript
4
star
49

fsharp-mongodb-api

REST API with MongoDB and F# on .NET Core.
F#
4
star
50

crisgon

Kind-of compiler fun to generate CSS pixel images
JavaScript
3
star
51

swoole-mysql-lock

๐Ÿ”’ Experimenting MySQL locks for concurrent Swoole processes.
PHP
3
star
52

mars

Meteor, Apollo, Redux & React
JavaScript
3
star
53

phull

Client-server communication between JS and PHP via Ajax long polling.
PHP
3
star
54

simplest-php-website-ever

Simplest PHP website ever!
PHP
3
star
55

coroutine-context-api

Using Coroutines Contexts as Hierarchal Service Locators and Dependency Injection Containers
PHP
3
star
56

loadtest

HTTP server snippets to load test.
Batchfile
3
star
57

dotfiles

My personal dotfiles
Emacs Lisp
2
star
58

dispatch

๐Ÿ•Š๏ธ Event dispatcher awareness made simple.
PHP
2
star
59

merw6n

MEAN? MERW6N! WTF?
JavaScript
2
star
60

free-deploy

๐Ÿ’ธ Full-stack React (Next.js) & MongoDB application exploring generous free plans from Vercel and Atlas.
TypeScript
2
star
61

otel-php-metrics

Very small example application to debug HTTP requests no summing up.
PHP
2
star
62

yet-another-clean-architecture-example

๐Ÿ“ YACAE shows off a proof of concept for a Clean Architecture trying to follow some basic principles
PHP
2
star
63

exercism-rust

๐Ÿ‹๏ธ My solutions for Exercism's Rust track
Rust
1
star
64

nano-goridge

Proof of concept on running Hyperf's Nano with Spiral's Goridge
PHP
1
star
65

swoole-examples

๐Ÿ““ Learning and teaching Swoole by examples
PHP
1
star
66

rusty-rocket

Working out on Rust and Rocket web framework
Rust
1
star
67

dartlangbr

Exemplo de como criar e publicar pacotes de bibliotecas Dart no Pub.
Dart
1
star
68

nedo

๓ €ผNedo.html is a HTML runtime built as a PoC for people who think markup languages can't be programming languages.
Rust
1
star
69

php-dev

๐Ÿ˜ Docker based development environment for PHP source-code.
Dockerfile
1
star
70

go-intensivo

Working on Go Intensivo class
Go
1
star
71

phpaskell

Trying to implement Category Theory concepts in PHP to help understanding Haskell
PHP
1
star
72

write

Notes, ideas, articles, screenwriting, papers, drafts, thoughts... Just write!
1
star
73

phusic

PHP port of the Fusic experiment
PHP
1
star
74

risp

๐Ÿฆ€๐Ÿ“œ (rust-based (cli-tool (to-work-with (lists))))
Rust
1
star
75

hello-dapr

๐ŸŽฉ Running PHP's Dapr SDK within Swoole & Hyperf.
PHP
1
star
76

leocavalcante.org

*.org
Makefile
1
star
77

slimr

Wire up dependencies, routes and hooks in your Slim application and use Controllers as Services.
PHP
1
star
78

tracking-analytics

Track any kind of action in a Google Analytics account even out of a page you control (i.e. Pixel Tracking)
PHP
1
star