पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

gradient_coloured_buttons कवर
पैकेज विवरणv0.1.0

gradient_coloured_buttons

अपने फ्लटर UI को बेहतर बनाने के लिए कस्टमाइज़ करने योग्य ग्रेडिएंट रंग, आयाम और बॉर्डर त्रिज्या वाले दिखावटी बटन बनाएं।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
29
लाइक
87
Pub अंक
130

पैकेज इंस्टॉल करें

flutter pub add gradient_coloured_buttons

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

एक फ्लटर पैकेज जो विकासकर्ताओं को पूरी तरह से कस्टमाइज़ किए गए ग्रेडिएंट रंग, आयाम और बॉर्डर रेडियस के साथ आकर्षक बटन बनाने में सक्षम बनाता है। यह चिकनी रंग संक्रमण और आधुनिक दृश्य आकर्षण प्रदान करके उपयोगकर्ता इंटरफेस को बढ़ावा देता है, जो कई प्लेटफॉर्मों पर काम करता है। यह पैकेज आसानी से एकीकृत किया जा सकता है और डायनामिक बटन डिज़ाइन के साथ अलग होने की कोशिश करने वाले ऐप्स के लिए आदर्श है। यह सभी प्रमुख फ्लटर प्लेटफॉर्म जैसे Android, iOS, Web, macOS, Windows और Linux का समर्थन करता है।

उपयोग

  • चमकीले बटन के साथ ऐप यूआई में सुधार
  • इंटरैक्टिव कॉल-टू-एक्शन तत्व बनाना
  • आधुनिक लॉगिन या साइनअप स्क्रीन का डिज़ाइन करना
  • फॉर्म में दृश्य प्रतिक्रिया को बेहतर बनाना
  • डैशबोर्ड में अलंकरण का स्वाद जोड़ना
  • अतिरिक्त कोड के बिना बटन शैली को कस्टमाइज़ करें

मुख्य विशेषताएँ

  • पूरी तरह से कस्टमाइज़ किए गए रंगों के धुंधले रंग
  • नियंत्रित बटन आयाम
  • निर्धारित सीमा त्रिज्या
  • क्रॉस-प्लेटफॉर्म संगतता
  • pub.dev के माध्यम से सरल एकीकरण
  • रैखिक और त्रिज्या के धुंधले को समर्थन करता है

इनके लिए उपयुक्त

  • दृश्य सुंदरता की तलाश में UI डिजाइनर
  • आधुनिक Flutter ऐप बनाने वाले विकासकर्ता
  • आकर्षक इंटरैक्टिव तत्वों की आवश्यकता वाले एप्स
  • सौंदर्य और ब्रांडिंग पर केंद्रित परियोजनाएँ
  • त्वरित बटन कस्टमाइजेशन चाहने वाली टीमें

विचार योग्य बातें

  • प्राप्त करने के लिए अतिरिक्त स्टाइलिंग की आवश्यकता हो सकती है एक्सेसिबिलिटी
  • जटिल लेआउट में धुंधलापन का प्रभाव
  • सीमित निर्मित एनीमेशन विकल्प
  • पठनीयता के लिए सबसे अच्छा विपरीत टेक्स्ट के साथ उपयोग किया जाता है
  • निर्माण के लिए आदर्श नहीं है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

Gradient Button

A Flutter package that provides customizable buttons with gradient colors. Enhance your Flutter UI by easily creating buttons with smooth gradient backgrounds.

Features

  • Create buttons with gradient backgrounds using the GradientButton widget.
  • Customize button dimensions, border radius, and more.
  • Easy integration and usage within your Flutter projects.

Getting started

To use this package, add gradient_coloured_buttons as a dependency in your pubspec.yaml file:

dependencies:

gradient_coloured_buttons: ^0.0.7

Example

These are the properties that you can modify:

  • text

  • onPressed

  • gradientColors

  • width

  • height

  • borderRadius

  • textStyle

Usage

//HERE IS THE COMPLETE CODE ...

import 'package:flutter/material.dart';

//Import the package in your Dart file:

import 'package:gradient_coloured_buttons/gradient_coloured_buttons.dart';

void main() {
runApp(GradientButtons());
}

class GradientButtons extends StatelessWidget {
@override
Widget build(BuildContext context) {
  return MaterialApp(
    title: 'Gradient Coloured button',
    theme: ThemeData(
      primarySwatch: Colors.blue,
    ),
    home: GradientColouredButton(),
  );
}
}
class GradientColouredButton extends StatefulWidget {
const GradientColouredButton({Key? key}) : super(key: key);

@override
State<GradientColouredButton> createState() => _GradientColouredButtonState();
}

class _GradientColouredButtonState extends State<GradientColouredButton> {
@override
Widget build(BuildContext context) {
  return Scaffold(
    body:
    //      <---content STARTS here--->
    GradientButton(
            text: "Johnson Redonyx Silva",
            textStyle: const TextStyle(fontWeight: FontWeight.bold,fontSize: 15),
            gradientColors: const [Colors.red,Colors.black,Colors.brown],
            width: 200,
            height: 50,
            borderRadius: 30.0,
            onPressed: ()
            {
              print("GradientButton is Pressed");
            }
        ),
    //      <---content ENDS here--->
  );
}
}

Example Image

Example Image

Additional information

This package offers a straightforward solution to apply gradient colors to buttons, enabling you to enhance their visual appeal effortlessly and efficiently.

श्रेणियाँ

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।