Pakete, Repositories und App-Kategorien suchen

Cover von marquee_widget
Paketdetailsv1.2.0

marquee_widget

Ein Flutter-Widget, das Widget-Text und andere Widgets mit unterstütztem RTL scrollt.

AndroidiOSWebmacOSWindowsLinux
30-Tage-Downloads
4580
Likes
68
Pub-Punkte
140

Paket installieren

flutter pub add marquee_widget

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Das marquee_widget ist ein Flutter-Paket, das horizontales Scrollen von Text und anderen Widgets ermöglicht und die Unterstützung für rechts-nach-links-(RTL-)Layouts bietet. Es eignet sich ideal zum Anzeigen langer Inhalte in begrenztem Platz, beispielsweise Überschriften oder Benachrichtigungen. Das Widget animiert den Inhalt nahtlos über den Bildschirm hinweg und gewährleistet Lesbarkeit und visuelle Attraktivität. Es funktioniert auf allen wichtigen Plattformen wie Android, iOS, Web, macOS, Windows und Linux und ist daher äußerst vielseitig. Aufgrund seiner Einfachheit lässt es sich problemlos in bestehende Flutter-Anwendungen integrieren, ohne komplizierte Einrichtung. Das Paket wird aktiv gepflegt und ist Open Source, sodass Beiträge der Community möglich sind.

Anwendungsfälle

  • Lange Überschriften in Nachrichten-Apps anzeigen
  • Anzeige laufender Benachrichtigungen oder Warnungen
  • Ticker-artigen Text in Dashboards animieren
  • Unterstützung von RTL-Sprachen wie Arabisch und Hebräisch
  • Dynamische Benutzeroberflächenelemente in Kiosken oder Digital Signage erstellen

Hauptmerkmale

  • Glatte horizontale Scrollanimation
  • Vollständige RTL-Sprachunterstützung
  • Plattformübergreifende Kompatibilität
  • Einfache Integration in bestehenden Flutter-Code
  • Anpassbare Geschwindigkeits- und Verzögerungseinstellungen
  • Unterstützt jedes Widget, nicht nur Text

Geeignet für

  • Entwickler, die mehrsprachige Apps erstellen
  • Designer, die animierte Texteffekte benötigen
  • Apps, die kompakte Darstellung langer Inhalte erfordern
  • Kiosk oder öffentliche Informationsysteme
  • Echtzeit-Daten-Dashboards

Hinweise

  • Kann die Leistung bei sehr langen Inhalten beeinträchtigen
  • Erfordert sorgfältige Abstimmung der Scrollgeschwindigkeit für Lesbarkeit
  • Nicht geeignet für statische Textanzeigen
  • Begrenzte Anpassungsmöglichkeiten jenseits grundlegender Parameter
  • Am besten sparsam verwenden, um Ablenkung des Benutzers zu vermeiden

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

marquee_widget

A Flutter widget that scrolls Widget Text and other Widget with supported RTL. Provides many customizationsincluding custom scroll directions and velocities, pausing after every round and specifying custom durations and curves for accelerating and decelerating.

Usage

This is a minimalistic example:

Marquee(
  child:Text( 'This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects. '),
)

And here's a piece of code that makes full use of the marquee's customizability:

set Width and Height with Continer()

Marquee(
  child:Text( 'This project is a starting point for a Dart package'),
  scrollAxis: Axis.horizontal,
  textDirection : TextDirection.rtl,
  animationDuration: Duration(seconds: 1),
  backDuration: Duration(milliseconds: 5000),
  pauseDuration: Duration(milliseconds: 2500),
  directionMarguee: DirectionMarguee.oneDirection,

)

Exmpale

GridView.count(
        crossAxisCount: 2,
        childAspectRatio: 0.7,
        children: <Widget>[
          GridTile(
            child: Card(
              child: Column(
                children: <Widget>[
                  Expanded(
                      child: Image.network(
                    "https://i.pinimg.com/564x/9d/a6/36/9da636b9e60ea40b18921b0053b7d486.jpg",
                    fit: BoxFit.fitHeight,
                  )),
                  Marquee(
                      child: Text(
                    "Flutter is a free and open source Google mobile UI ",
                    style: TextStyle(fontSize: 16),
                  )),
                ],
              ),
            ),
          ),
          GridTile(
            child: Card(
              child: Column(
                children: <Widget>[
                  Expanded(
                      child: Image.network(
                    "https://cdn-images-1.medium.com/max/1000/1*upTyVPOfBb0c4o1r57C9_w.png",
                    fit: BoxFit.fitHeight,
                  )),
                  Marquee(
                      child: Text(
                    "Flutter is a free and open source Google mobile UI ",
                    style: TextStyle(fontSize: 16),
                  )),
                ],
              ),
            ),
          ),
          GridTile(
            child: Card(
              child: Column(
                children: <Widget>[
                  Expanded(
                      child: Marquee(
                          child: Container(
                              width: 1000,
                              child: Image.network(
                                "https://i.pinimg.com/564x/9d/a6/36/9da636b9e60ea40b18921b0053b7d486.jpg",
                                fit: BoxFit.fitWidth,
                              )))),
                  Marquee(
                      child: Text(
                    "Flutter is a free and open source Google mobile UI ",
                    style: TextStyle(fontSize: 16),
                  )),
                ],
              ),
            ),
          ),
          GridTile(
            child: Card(
              child: Column(
                children: <Widget>[
                  Marquee(
                      child: Container(width: 1000,
                        child: Column(
                    children: <Widget>[
                        Marquee(
                            child: Container(
                                width: 1000,height: 260,
                                child: Image.network(
                                  "https://cdn-images-1.medium.com/max/1000/1*upTyVPOfBb0c4o1r57C9_w.png",
                                  fit: BoxFit.fitWidth,
                                ))),
                        Text(
                          "Flutter is a free and open source Google mobile UI ",
                          style: TextStyle(fontSize: 16),
                        ),
                    ],
                  ),
                      )),
                ],
              ),
            ),
          ),
        ],
      ),

LICENSE

Copyright (c) 2018 Marcel Garus

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Kategorien

Quell-Repository

Projekte, die dieses Paket verwenden