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

패키지 상세v0.1.4

marquee_flutter

ListView를 포함한 마르케이드 위젯으로 수직 또는 수평 스크롤 가능

30일 다운로드
34
좋아요
17
Pub 점수
40

패키지 설치

flutter pub add marquee_flutter

패키지 개요

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

MarqueeFlutter는 수평 또는 수직으로 콘텐츠를 스크롤할 수 있는 마르케이드 위젯을 제공하는 플러터 패키지입니다. ListView와의 통합을 지원하여 텍스트나 위젯에 대해 부드러운 무한 스크롤을 가능하게 합니다. 뉴스 티커나 공지사항과 같이 제한된 공간에 긴 내용을 표시할 때 이상적입니다. 사용자 정의가 가능하고 가볍게 설계되어 성능과 사용 편의성을 고려하였습니다. 플러터의 위젯 트리 내에서 원활하게 작동하며 다양한 UI 요구 사항에 쉽게 구성할 수 있습니다.

사용 사례

  • 스크롤링 뉴스 제목 표시
  • 애니메이션 배너 만들기
  • 제한된 공간에 긴 텍스트 표시
  • 티커 스타일의 UI 구현
  • 알림 표시 향상

주요 기능

  • 수평 및 수직 스크롤
  • ListView 통합
  • 무한 스크롤 기능
  • 사용자 정의 가능한 속도 및 동작
  • 경량이며 성능이 뛰어남

적합한 대상

  • 뉴스 또는 알림 인터페이스
  • 다시보드 위젯
  • 모바일 앱 알림
  • 키오스크 또는 디스플레이 애플리케이션
  • 지속적인 스크롤이 필요한 UI 요소

고려 사항

  • 스크롤 속도를 신중하게 조정해야 할 수 있습니다
  • 최적화되지 않은 상태에서는 대규모 데이터 세트에 적합하지 않음
  • 제한된 플랫폼별 사용자 지정
  • 짧은부터 중간 길이의 콘텐츠에 가장 적합
  • 적절히 레이블이 지정되지 않은 경우 접근성 문제 발생 가능

원본 README

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

marquee

pub package

一个用ListView做的跑马灯,可以垂直方向滚动,也可以水平方向滚动。由于ListView回撑满空间,所以在水平滚动时,必须设置高度,垂直滚动时,必须设置宽度

A Marquee widght with ListView,Can scroll vertically or horizontally.The ListView will fill up the space, the height must be set when scrolling horizontally, and the width must be set when scrolling vertically.

HomePage:https://github.com/baoolong/MarqueeWidget

MoreWidght:https://github.com/OpenFlutter/PullToRefresh

Usage

Add this to your package's pubspec.yaml file:

dependencies:
  marquee_flutter: ^0.1.4

Add it to your dart file:

import 'package:marquee_flutter/marquee_flutter.dart';

Example

import 'package:flutter/material.dart';
import 'package:marquee_flutter/marquee_flutter.dart';


class MarqueeWidgetDemo extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return new Scaffold(
        appBar: new AppBar(
          title: new Text("跑马灯"),
        ),
        body:new Container(
          color: Colors.blueGrey,
          height: 30,
          child: new MarqueeWidget(
            text: "ListView即滚动列表控件,能将子控件组成可滚动的列表。当你需要排列的子控件超出容器大小",
            textStyle: new TextStyle(fontSize: 16.0),
            scrollAxis: Axis.horizontal,
          ),
        )
    );
  }
}

Notice

由于ListView回撑满空间,所以在水平滚动时,必须设置高度,垂直滚动时,必须设置宽度

The ListView will fill up the space, the height must be set when scrolling horizontally, and the width must be set when scrolling vertically.

LICENSE

MIT License

Copyright (c) 2018 baoolong

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.

카테고리

소스 저장소

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

아직 데이터가 없습니다.