패키지, 저장소 및 앱 카테고리 검색

gradient_coloured_buttons 표지
패키지 상세v0.1.0

gradient_coloured_buttons

사용자 정의 가능한 그라디언트 색상, 치수 및 테두리 반지름을 사용하여 시각적으로 매력적인 버튼을 만들고 Flutter UI를 향상시키세요.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
29
좋아요
87
Pub 점수
130

패키지 설치

flutter pub add gradient_coloured_buttons

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

개발자가 완전히 사용자 정의 가능한 그라데이션 색상, 치수 및 테두리 반지름을 사용하여 매력적인 버튼을 만들 수 있도록 해주는 플러터 패키지입니다. 부드러운 색상 전환과 현대적인 시각적 매력을 제공하여 다양한 플랫폼에서 사용자 인터페이스를 강화합니다. 쉽게 통합할 수 있으며, 역동적인 버튼 디자인으로 눈에 띄고 싶은 앱에 이상적입니다. 안드로이드, iOS, 웹, macOS, 윈도우, 리눅스 등 모든 주요 플러터 플랫폼을 지원합니다.

사용 사례

  • 생동감 있는 버튼으로 앱 UI 향상
  • 상호작용형 액션 버튼 요소 만들기
  • 현대적인 로그인 또는 회원가입 화면 디자인
  • 양식에서 시각적 피드백 향상
  • 다시보드에 미적 매력 추가
  • 추가 코드 없이 버튼 스타일 맞춤 설정

주요 기능

  • 완전히 사용자 정의 가능한 그라디언트 색상
  • 조정 가능한 버튼 크기
  • 사용자 정의 가능한 테두리 반지름
  • 크로스 플랫폼 호환성
  • 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.

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.