# marquee_switcher **Repository Path**: xiafengjue/marquee_switcher ## Basic Information - **Project Name**: marquee_switcher - **Description**: 超出屏幕长度会先横向滚动,然后再垂直切换的跑马灯微件 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-12-05 - **Last Updated**: 2024-11-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README MarqueeSwitcher ## Features 1. 支持垂直切换 2. 当item超过屏幕会先横向滚动完成再垂直切换 3. 支持每个item显示的最小时间 4. 请保证item的数量大于1个,不支持单个item的跑马灯效果。 ## Screen ## Usage 使用方式如下 ```dart MarqueeSwitcher( length: texts.length, itemBuilder: (_, index) => Text( texts[index], textAlign: TextAlign.start, style: TextStyle( color: index % 2 == 0 ? Colors.red : Colors.blue, ), ), onItemTap: (index) { print('object$index'); }, ) ```