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

neumorphic_button 표지
패키지 상세v0.0.1+2

neumorphic_button

Flutter 앱 전반에서 사용할 수 있는 다양한 사용자 정의 기능을 갖춘 뉴모포닉 버튼을 만듭니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
3
좋아요
50
Pub 점수
150

패키지 설치

flutter pub add neumorphic_button

패키지 개요

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

개발자가 다양한 사용자 정의 옵션을 통해 세련되고 현대적인 뉴모포닉 버튼을 만들 수 있도록 해주는 플러터 패키지입니다. 이러한 버튼은 부드러운 그림자와 미묘한 깊이 효과를 갖추고 있어 여러 플랫폼에서 앱의 시각적 매력을 향상시킵니다. 색상, 그림자 강도, 테두리 반경, 높이 등 다양한 스타일 속성을 지원하여 애플리케이션 전체에 일관된 UI 디자인을 가능하게 합니다. 최소한의 디자인으로도 매력적인 인터페이스를 원하는 디자이너에게 이상적이며 기존 플러터 프로젝트에 쉽게 통합할 수 있습니다.

사용 사례

  • 시각적으로 매력적인 앱 인터페이스 만들기
  • 인터랙티브 요소에 깊이 추가하기
  • 현대적인 미학을 갖춘 모바일 및 웹 애플리케이션 설계
  • 다양한 플랫폼 간에 일관된 버튼 스타일 구현
  • 촉각 피드백을 통한 사용자 경험 향상

주요 기능

  • 사용자 정의 가능한 그림자 및 깊이 효과
  • 다중 플랫폼 렌더링 지원
  • 조정 가능한 버튼 크기 및 모서리 반경
  • 사용자 정의 가능한 색상 테마
  • 내장 애니메이션 지원
  • Flutter 위젯과의 간편한 통합

적합한 대상

  • Flutter를 사용하는 UI/UX 디자이너
  • 현대의 모바일 또는 웹 앱을 개발하는 개발자
  • 미니멀리스트 디자인 언어가 필요한 프로젝트
  • 시각적 일관성에 집중하는 팀
  • iOS 및 Android를 대상으로 하는 앱에서 통합된 스타일 사용

고려 사항

  • 저사양 기기에서 성능 최적화가 필요할 수 있습니다
  • 표준 버튼과 비교해 접근성 기능이 제한적입니다
  • 시각적 혼잡을 초래할 수 있는 과도한 사용
  • 고대비 또는 어두운 모드 중심 테마에 적합하지 않습니다
  • 완전한 기능을 위해 외부 종속성에 의존합니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Neumorphic Button

This package lets you create Neumorphic Button with a number of customizable features that can be used throughout your Flutter app.You can create a minimal visual design style that uses monochromatic colors, subtle shadows and low contrasts to showcase buttons and cards, creating a really soft look.

Installation

  1. Add the latest version of package to your pubspec.yaml
dependencies:
  neumorphic_button: ^0.0.1+2
  1. Import the package and use it in your Flutter App.
import 'package:neumorphic_button/neumorphic_button.dart';

Features

There are a number of properties that you can specify for your neumorphic button :

  • height
  • width
  • border-radius
  • box-shape
  • shadow-color
  • spread-radius
  • blur-radius
  • onTap function

Example

Light mode neumorphic button
class HomeScreen extends StatelessWidget {
  const HomeScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    Size size = MediaQuery.of(context).size;
    return Scaffold(
      backgroundColor: Colors.grey.shade300,
      body: Center(
          child: NeumorphicButton(
        onTap: () {},
        child: Image.asset(
          'assets/apple.png',
          height: 80,
          color: Colors.grey[700],
        ),
        BorderRadius: 12,
        bottomRightShadowBlurRadius: 15,
        bottomRightShadowSpreadRadius: 1,
        borderWidth: 5,
        backgroundColor: Colors.grey.shade300,
        topLeftShadowBlurRadius: 15,
        topLeftShadowSpreadRadius: 1,
        topLeftShadowColor: Colors.white,
        bottomRightShadowColor: Colors.grey.shade500,
        height: size.width * 0.5,
        width: size.width * 0.5,
        padding: EdgeInsets.all(50),
        bottomRightOffset: Offset(4, 4),
        topLeftOffset: Offset(-4, -4),
      )),
    );
  }
}
Dark mode neumorphic button
class HomeScreen extends StatelessWidget {
  const HomeScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    Size size = MediaQuery.of(context).size;
    return Scaffold(
      backgroundColor: Colors.grey.shade900,
      body: Center(
          child: NeumorphicButton(
        onTap: () {},
        child: Image.asset(
          'assets/apple.png',
          height: 80,
          color: Colors.grey[700],
        ),
        BorderRadius: 12,
        bottomRightShadowBlurRadius: 15,
        bottomRightShadowSpreadRadius: 1,
        borderWidth: 5,
        backgroundColor: Colors.grey.shade900,
        topLeftShadowBlurRadius: 15,
        topLeftShadowSpreadRadius: 1,
        topLeftShadowColor: Colors.grey.shade800,
        bottomRightShadowColor: Colors.black,
        height: size.width * 0.5,
        width: size.width * 0.5,
        padding: EdgeInsets.all(50),
        bottomRightOffset: Offset(5, 5),
        topLeftOffset: Offset(-5, -5),
      )),
    );
  }
}

카테고리

소스 저장소

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

아직 데이터가 없습니다.