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

calendar_appbar 표지
패키지 상세v0.0.6

calendar_appbar

많은 새로운 기능을 갖춘 완전한 캘린더 뷰를 갖춘 사용자 지정 AppBar용 Flutter 패키지!

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
104
좋아요
241
Pub 점수
140

패키지 설치

flutter pub add calendar_appbar

패키지 개요

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

통합된 완전한 캘린더 뷰를 제공하는 사용자 정의 가능한 AppBar를 제공하는 플러터 패키지입니다. 표준 AppBar에 고급 캘린더 기능을 추가하여 사용자가 날짜를 탐색하고 이벤트를 확인하며 앱 바 내에서 캘린더 데이터와 직접 상호작용할 수 있도록 합니다. Android, iOS, Web, macOS, Windows, Linux 등 여러 플랫폼에 원활하게 통합되도록 설계되었으며, 날짜 중심의 탐색과 컴팩트하고 사용자 친화적인 인터페이스에서 시각적 캘린더 접근이 필요한 앱에 적합합니다.

사용 사례

  • 앱 바에서 날짜 선택
  • 이벤트 스케줄링 인터페이스
  • 모바일 앱에서의 캘린더 탐색
  • 시간 관리 응용 프로그램
  • 캘린더 보기와 함께하는 대시보드 위젯
  • 다중 플랫폼 캘린더 통합

주요 기능

  • AppBar 내 전체 캘린더 뷰
  • 사용자 지정 가능한 날짜 선택기
  • 다중 플랫폼 지원
  • 이벤트 강조
  • 스무스한 날짜 탐색
  • 반응형 디자인

적합한 대상

  • 캘린더 중심 앱을 개발하는 개발자
  • 아름다운 날짜 컨트롤을 찾는 UI 디자이너
  • 작은 캘린더 UI가 필요한 앱
  • 크로스 플랫폼 Flutter 프로젝트
  • 생산성 및 일정 관리 도구

고려 사항

  • 신중한 레이아웃 기획이 필요합니다
  • 대규모 데이터 세트에서는 성능에 영향을 줄 수 있습니다
  • 기본 스타일링을 초과한 제한된 사용자 정의
  • 플랫폼 전용 렌더링에 의존합니다
  • 복잡한 캘린더 워크플로우에 적합하지 않습니다
  • 주로 날짜 상호작용이 있는 앱에서 가장 잘 사용됩니다

원본 README

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

Calendar AppBar

Flutter package for custom AppBar with calendar view.

The package is currently optimized for mobile devices, therefore used only for mobile devices is prefered. It also works for larger screens, although it does not follow the rules of good UI. It is planned to be optimized shortly.

Image Image Image

Features

  • Define your custom color scheme
  • Enable or disable full-screen calendar view
  • Provide a list of dates that will be marked on the calendar view
  • Manipulate with a range of displayed dates
  • Set the language of your choice

Installation and Basic Usage

Add to pubspec.yaml:

dependencies:
  calendar_appbar: ^0.0.6

Then import it to your project:

import 'package:calendar_appbar/calendar_appbar.dart';

Finaly add CalendarAppBar in Scaffold:

@override
Widget build(BuildContext context) {
  return Scaffold(
      appBar: CalendarAppBar(
        onDateChanged: (value) => print(value),
        firstDate: DateTime.now().subtract(Duration(days: 140)),
        lastDate: DateTime.now(),
      ),
    );
}

There are three required attributes of class CalendarAppBar. Attribute onDateChange is a function, which defines what happens when the user selects a date. firstDate attribute defines the first date, which will be available for selection. The date saved in lastDate attribute is the last date available for selection. At first initialization of the object, the date provided as lastDate will be selected, but will not be returned with onDateChange function.

More Custom Usage

Hide Full Screen Calendar View

This package enables the usage of a full-screen calendar view. It is displayed when the user presses on month and year text in the top right corner of the AppBar. It comes in two different versions. If the first and last date are part of the same month the full-screen calendar will be displayed as seen on the third image at the top of this file. In the other way, it will be displayed as seen in the second image. It is possible to disable the full-screen view (which is enabled by default) by adding the following code:

    fullCalendar: false,
Define Your Custom Color Scheme

You can define your custom color scheme by defining white, black and accent color. Those three colors are set to Colors.white, Colors.black87 and Color(0xFF0039D9) by default. It is possible to customize those three colors as shown below.

    white: Colors.white,
    black: Colors.black,
    accent: Colors.blue,

The design is currently optimized for light mode and therefore also suggested to be used in that way to achieve better UX. Dark mode will be added soon.

Custom Padding

The horizontal padding can be customized (default it is set to 25px) by adding the following code:

    padding: 10.0,
Mark Dates with Events

It is possible to provide the list of dates of type List<DateTime>, which will be marked on calendar view with a dot.

    events: List.generate(
            10, (index) => DateTime.now().subtract(Duration(days: index * 2))),

The code above will generate the list of 10 dates for every second day from today backwards.

Back Button

The last attribute of CalendarAppbar is backButton, which is default set to true. Customize that feature by setting this attribute to false.

    backButton: false,
Internationalization

The newest feature the CalendarAppbar package is offering is local support for different languages. Use atribute locale to customize the language used for the plugin by adding the language code as shown below. If this atribute is not set, English language will be used.

    locale: 'en',

Thank you

Special thanks goes to all contributors to this package. Make sure to check them out.

Make sure to check out example project. If you find this package useful, star my GitHub repository.

Getting Started with Flutter

For help getting started with Flutter, view Flutter official documentation online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

카테고리

의존성

의존성 목록 1 개

소스 저장소

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

아직 데이터가 없습니다.