FLUTTER ECOSYSTEM

Askany-NDN/flutter-reaction-effects

:lion: 패키지 도움말은 Facebook처럼 팝업 반응을 표시하고 위젯 래퍼(이 메시지에 반응한 사람을 표시)입니다.

flutter-반응 효과 프로젝트 이미지
Stars
20
Forks
6
최근 푸시(UTC)
2023. 9. 21.
프로젝트 상태
활성
Askany GitHub avatar
GITHUB Organization

Askany ↗

Askany Project of NDN.Ltd 🍻 @Iambiengcode

언어DartC++CMakeHTMLCSwiftKotlinObjective-C

기술 주제

사용 중인 의존성

의존성 목록 3 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}
  • flutter_lints개발 의존성^2.0.0

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

:four_leaf_clover: Package help show popup reaction like Facebook and wrapper for widget (Show anyone who reaction this message).

:four_leaf_clover::four_leaf_clover: Preview

https://github.com/Askany-NDN/reaction_button_askany/blob/main/screenshots/IMG_0470.png?raw=true https://github.com/Askany-NDN/reaction_button_askany/blob/main/screenshots/IMG_0471.png?raw=true https://github.com/Askany-NDN/reaction_button_askany/blob/main/screenshots/IMG_0465.png?raw=true https://github.com/Askany-NDN/reaction_button_askany/blob/main/screenshots/IMG_0467.png?raw=true

Features

  • Support show popup emotions picker
  • Support reaction wrapper for message card use case

Usage

  • Show reaction popup
        GestureDetector(
          onTapDown: (details) {
            ReactionAskany.showReactionBox(
              context,
              offset: details.globalPosition,
              boxParamenters: boxParamenters,
              emotionPicked: _emotion,
              handlePressed: (Emotions emotion) {
                setState(() {
                  _emotion = emotion;
                });
              },
            );
          },
          child: widget.buttonReaction,
        ),
  • Use reaction wrapper - useful for reaction message
            ReactionWrapper(
              boxParamenters: ReactionBoxParamenters(
                brightness: Brightness.light,
                iconSize: 26,
                iconSpacing: 10,
                paddingHorizontal: 30,
                radiusBox: 40,
                quantityPerPage: 6,
              ),
              buttonReaction: const Padding(
                padding: EdgeInsets.only(top: 2.0),
                child: Icon(
                  Icons.face_outlined,
                  size: 20.0,
                  color: Colors.grey,
                ),
              ),
              child: Container(
                padding: const EdgeInsets.symmetric(
                  vertical: 12.0,
                  horizontal: 20.0,
                ),
                decoration: BoxDecoration(
                  color: Colors.greenAccent.shade100,
                  borderRadius: BorderRadius.circular(30),
                ),
                child: const Text(
                  'Message from lambiengcode <3',
                ),
              ),
            ),
ReactionBoxParamenters
parameter description default
iconSize Size of emotion in reaction box 20
iconSpacing Padding horizontal value for each emotion 8
paddingHorizontal Padding horizontal value for reaction box 16
radiusBox Radius circular of reaction box 10
quantityPerPage Number of emotions per page view 5
brightness Set brightness for show background color compatitive Brightness.light

Download Askany

https://askany.com/images/app-store.png https://askany.com/images/ch-play.png

License - lambiengcode

MIT License

Copyright (c) 2022 Askany

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.