Pakete, Repositories und App-Kategorien suchen

Cover von bubble_box
Paketdetailsv0.5.3

bubble_box

Eine leistungsstarke Blasebox, die grundlegende Blasen, Ränder, gestrichelte Linien, Farbverläufe, Winkel, anpassbare Breite und Höhe, Blasenrichtung, Versatz usw. implementiert.

AndroidiOSWebmacOSWindowsLinux
30-Tage-Downloads
1250
Likes
52
Pub-Punkte
150

Paket installieren

flutter pub add bubble_box

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Bubble Box ist ein Flutter-Paket, das Entwicklern ermöglicht, visuell ansprechende, blasenförmige Container mit anpassbaren Funktionen wie Rändern, Punktiertlinien, Gradienten, Winkeln, adaptiver Größenanpassung und Richtungsverschiebungen zu erstellen. Es unterstützt mehrere Plattformen wie Android, iOS, Web, macOS, Windows und Linux. Das Paket vereinfacht die Implementierung dynamischer, stilvoller Benutzeroberflächenelemente, die ideal für Tooltips, Badges oder interaktive Designkomponenten sind. Mit intuitiven Konfigurationsoptionen verbessert es die Ästhetik der Benutzeroberfläche, ohne komplexe benutzerdefinierte Malerei zu erfordern.

Anwendungsfälle

  • Animierte Tooltips erstellen
  • Chatbläschen gestalten
  • Interaktive Abzeichen erstellen
  • UI durch Gradienteneffekte verbessern
  • Responsive Bubble-Layouts implementieren

Hauptmerkmale

  • Anpassbare Blasenrichtung
  • Anpassbare Breite und Höhe
  • Gradientenfarben-Unterstützung
  • Punktierte Linienränder
  • Winkel- und Versatzanpassungen
  • Plattformübergreifende Kompatibilität

Geeignet für

  • UI-Designer, die visuellen Glanz suchen
  • Entwickler, die Chat-Oberflächen erstellen
  • Apps, die dynamische Badge-Komponenten benötigen
  • Projekte mit Schwerpunkt auf visuellen Effekten
  • Plattformübergreifende mobile und Web-Anwendungen

Hinweise

  • Kann die Leistung beeinträchtigen, wenn sie übermäßig verwendet wird
  • Erfordert sorgfältige Layoutverwaltung
  • Beschränkte Dokumentation außerhalb grundlegender Beispiele
  • Nicht ideal für einfache rechteckige Formen

Original-README

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

pub package

English 中文

bubble_box

A powerful bubble box, which implements basic bubble, border, dotted line, gradient color, angle, adaptive width and height, bubble direction, offset, etc.

This project was wrote with pure dart code,which means it's support both iOS As well as Android, web, windows, linux, etc.

Modified a lot of APIs, please pay attention to upgrade

Screenshot

Basic Components

BubbleBox(
    maxWidth: MediaQuery.of(context).size.width * 0.8,
    child: Text('I am a basic component application example'),
)

Customize the border color, width, and component background color

BubbleBox(
    maxWidth: MediaQuery.of(context).size.width * 0.8,
    shape: BubbleShapeBorder(
      border: BubbleBoxBorder(
        color: Colors.blue,
        width: 3,
      ),
      position: const BubblePosition.center(0),
      direction: BubbleDirection.right,
    ),
    backgroundColor: Colors.green.withOpacity(0.8),
    child: Text('I can customize the color and width of the border, the background color of the component, the position of the sharp corner of the bubble and the offset of the sharp corner'),
  )

Define the border as a dashed line and the border color gradient

BubbleBox(
    maxWidth: MediaQuery.of(context).size.width * 0.8,
    gradient: LinearGradient(
      colors: [
        Colors.pink,
        Colors.orange[700],
      ],
    ),
    blendMode: BlendMode.srcATop,
    shape: BubbleShapeBorder(
      border: BubbleBoxBorder(
        gradient: LinearGradient(
          colors: [
            Colors.pink,
            Colors.orange[700],
          ],
        ),
        width: 3,
        style: BubbleBoxBorderStyle.dashed,
      ),
      direction: BubbleDirection.left,
      position: const BubblePosition.start(12),
    ),
    margin: EdgeInsets.all(4),
    elevation: 5,
    shadowColor: Colors.redAccent,
    child: Text(
        'However, I can not only customize the border and sharp corners of the bubble. I can also define the border as a dashed line and a gradient of border color. \nI am adaptive to the content, there is no need to set the width and height. Of course, you can limit the maximum width and height of the component. \nMy content can also be faded. \nIn addition, you may need some shadows, and the shadows may also need some of their own colors.'),
  )

background color gradient

BubbleBox(
    maxWidth: MediaQuery.of(context).size.width * 0.85,
    elevation: 5,
    gradient: LinearGradient(colors: [
      Colors.red,
      Colors.orange[700],
      Colors.orange[500],
    ]),
    shape: BubbleShapeBorder(
      border: BubbleBoxBorder(
        gradient: LinearGradient(
          colors: [
            Colors.pink,
            Colors.orange[700],
          ],
        ),
        color: Colors.blue,
        width: 3,
        style: BubbleBoxBorderStyle.dashed,
      ),
      direction: BubbleDirection.none,
      position: const BubblePosition.start(12),
    ),
    margin: EdgeInsets.all(4),
    child: Text(
      'my background can actually fade',
    ),
  ),

obtuse angle

BubbleBox(
    maxWidth: MediaQuery.of(context).size.width * 0.85,
    shape: BubbleShapeBorder(
      direction: BubbleDirection.left,
      position: const BubblePosition.start(12),
      arrowQuadraticBezierLength: 2,
    ),
    backgroundColor: Color(0xff98E165),
    margin: EdgeInsets.all(4),
    child: Text(
      'We added new obtuse angles so that the triangles are no longer so sharp',
    ),
  ),

enhanced radius

BubbleBox(
    maxWidth: MediaQuery.of(context).size.width * 0.85,
    backgroundColor: Color(0xff98E165),
    margin: EdgeInsets.all(4),
    shape: BubbleShapeBorder(
      radius: BorderRadius.only(
          topRight: Radius.elliptical(30, 15),
          bottomLeft: Radius.elliptical(30, 15)),
    ),
    child: Text(
      'We have made some modifications to the border radius to make it more free',
    ),
  ),

Kategorien

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.