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

arc_sidebar 표지
패키지 상세v0.0.4

arc_sidebar

flutter pps를 위한 사이드바/드로어

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
60
좋아요
14
Pub 점수
145

패키지 설치

flutter pub add arc_sidebar

패키지 개요

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

ArcSidebar는 Flutter 애플리케이션용으로 설계된 사용자 정의 가능한 사이드바 또는 드로어 컴포넌트로, 현대적인 아크형 디자인을 통해 탐색 기능을 향상시킵니다. Android, iOS, 웹, macOS, Windows, Linux 등 다양한 플랫폼을 지원합니다. 패키지는 부드러운 애니메이션, 반응형 레이아웃 및 간단한 pub add 명령을 통한 쉽게 통합할 수 있습니다. 직관적인 탐색과 독특한 시각적 스타일이 필요한 앱에 적합하며, 개발자가 스타일과 동작에 유연성을 제공합니다. 성능과 사용성에 중점을 두고 제작되어 다양한 기기 유형에서 우아한 사이드 탐색을 구현하는 것을 단순화합니다.

사용 사례

  • 모바일 및 데스크톱 앱 탐색
  • 웹 애플리케이션 사이드바
  • 사용자 정의 가능한 서랍 인터페이스
  • 크로스 플랫폼 UI 일관성
  • 아크 디자인으로 향상된 사용자 경험

주요 기능

  • 아치형 디자인
  • 크로스 플랫폼 지원
  • 부드러운 애니메이션
  • 사용자 정의 가능한 외관
  • 반응형 레이아웃
  • pub를 통한 간편한 통합

적합한 대상

  • 독특한 서랍 디자인을 찾는 개발자
  • 다양한 플랫폼 간 일관된 탐색이 필요한 앱
  • 현대적인 UI 미학을 강조하는 프로젝트
  • 빠른 UI 개발을 우선시하는 팀
  • 디자인 중심의 플러터 애플리케이션

고려 사항

  • 복잡한 레이아웃을 위해 추가 스타일링이 필요할 수 있습니다
  • 기본 사용법을 넘어서는 문서가 제한적
  • 중량 콘텐츠와 함께 가능한 성능 영향
  • 미니멀리즘 디자인에 적합하지 않음
  • 완전한 기능을 위해 외부 종속성에 의존합니다

원본 README

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

arc_sidebar

by: Eliezer António

Imagem 1 Gif Exemplo

Installation

Add arc_sidebar: ^0.0.4 to your pubspec.yaml dependencies. And import it:

import 'package:arc_sidebar/arc_sidebar.dart';

How to use

 ArcSideBar(
            body: [
              SideBarItem(
                icon: Icons.play_arrow_outlined,
                title: 'Exhibition Screen',
                onTap: (){

                },
              ),
              SideBarItem(
                title: 'Popular Screen',
                icon: Icons.movie_outlined,
               onTap: (){
                  
                },
              ),
              SideBarItem(
                title: 'Briefly Screen',
                icon: Icons.card_giftcard,
               onTap: (){
                  
                },
              ),
            ],
      
          );
All SliderItem parameters

  Key? key,
  IconData? icon,
  TextStyle? style,
  Color? iconColor,
  String title,
  void Function()? onTap,
  

General Example

Preview


class Home extends StatefulWidget {
  const Home({super.key});

  @override
  State<Home> createState() => _HomeState();
}

class _HomeState extends State<Home> {
  int _currentIndex = 0;
  final List<Widget> _currentScreen = [
    Container(color: Colors.red, width: 500, height: 1000),
    Container(color: Colors.purpleAccent, width: 500, height: 1000),
    Container(color: Colors.orange, width: 500, height: 1000),
    Container(color: Colors.greenAccent, width: 500, height: 1000),
  ];
  void onIconPressed(int index) async {
       if (_currentIndex == index) return; //* Prevent reconstruction of the current screen 
    setState(() {
      _currentIndex = index;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Stack(
        children: [
          _currentScreen[_currentIndex],
          ArcSideBar(
            background: Colors.white,
            header: Center(
              child: Column(
                mainAxisAlignment: MainAxisAlignment.center,
                crossAxisAlignment: CrossAxisAlignment.center,
                children: [
                  SizedBox(height: 50),
                  Icon(
                    Icons.flutter_dash,
                    size: 100,
                    color: Colors.blueAccent,
                  ),
                ],
              ),
            ),
            body: [
              SideBarItem(
                icon: Icons.play_arrow_outlined,
                title: 'Exhibition Screen',
                onTap: () => onIconPressed(0),
              ),
              SideBarItem(
                title: 'Popular Screen',
                icon: Icons.movie_outlined,
                onTap: () => onIconPressed(1),
              ),
              SideBarItem(
                title: 'Briefly Screen',
                icon: Icons.card_giftcard,
                onTap: () => onIconPressed(2),
              ),
            ],
            footer: Column(
              children: [
                ListTile(
                  title: Text("Dark Mode", style: TextStyle(fontWeight: FontWeight.w300, fontSize: 17)),
                  leading: Icon(Icons.lightbulb_outline, size: 30),
                  trailing: Switch.adaptive(
                    value: false,
                    onChanged: (value) {},
                  ),
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }
}


🤝 Contributing to ArcSideBar
  1. Fork the Repository: Create your copy.

  2. Create a Branch:

    git checkout -b my-feature-branch
    
  3. Make Changes: Implement your feature or fix.

  4. Commit Changes:

    git commit -m "Add a new feature"
    
  5. Push to Your Fork:

    git push origin my-feature-branch
    
  6. Create a Pull Request: Submit your changes for review.

카테고리

의존성

의존성 목록 1 개

소스 저장소

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

아직 데이터가 없습니다.