FLUTTER ECOSYSTEM

sameersingh2704/glitcheffect

Ein Flutter-Widget, das seinem Kind-Widget einen Glitch-Animationseffekt verleiht.

Projektcover von glitcheffect
Stars
7
Forks
3
Letzter Push (UTC)
22.02.2023
Projektstatus
Aktiv
Sameer Singh GitHub avatar
GITHUB User

Sameer Singh ↗

A quick learner with experience in multiple technologies.

Unthinkable Solutions LLPGurgaon, HR, INOffizielle Website ↗
SprachenDart

Technische Themen

Von diesem Repository veröffentlichte Pakete

Verwendete Abhängigkeiten

Abhängigkeiten 3 Einträge
  • flutter{"sdk":"flutter"}
  • flutter_testEntwicklung{"sdk":"flutter"}
  • flutter_lintsEntwicklung^1.0.0

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

Projekt-README ein-/ausklappen

GlitchEffect

A Flutter widget that will give a Glitch Animation Effect to it's child widget.

Installation

  1. Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
  glitcheffect: ^1.1.1
  1. Import the package and use it in your Flutter App.
import 'package:glitcheffect/glitcheffect.dart';
  1. There are a number of properties that you can modify:
  • child : Widget on which you want a glitch effect.
  • repeat : Whether the glitch effect should play once or play over and over. [default value is true].
  • duration : How long it should take until the glitch effect repeats itself [default value is 3 seconds].
  • colors : List of colors that you want to use for glitch effect. [default colors are Black, Grey and White].
Preview

alt-text


Example

class GlitchEffectExample extends StatelessWidget {
  const GlitchEffectExample({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return GlitchEffect(
      child: Text(
        'Flutter',
        style: TextStyle(fontSize: 30, color: Colors.red),
      ),
    );
  }
}

Contributors