搜索插件、代码仓与 APP 分类

opscroll_web 封面
插件详情v0.3.2

opscroll_web

一个为 Flutter Web 提供单页滚动功能的库。轻松快速地创建单页着陆页面,还提供其他滚动动画,如淡入淡出、下落和水波纹效果。

Web
近 30 天下载
29
喜欢数
65
Pub 分数
140

安装插件

flutter pub add opscroll_web

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

opscroll_web 是一个 Flutter Web 库,可轻松创建单页滚动体验,非常适合构建快速且视觉吸引力强的登录页面。它提供了内置的动画效果,如淡入、下落和水波效果,以增强用户交互。专为 Web 设计,它与 Flutter 的 Web 平台无缝集成,提供流畅的滚动过渡和响应式设计支持。该包通过极少的代码即可简化复杂的基于滚动的布局,非常适合希望无需大量自定义实现即可交付动态 Web 内容的开发者。

适合场景

  • 创建着陆页
  • 构建交互式网页作品集
  • 实现动画滚动区域
  • 设计单页Web应用程序
  • 通过滚动效果提升用户参与度

主要特点

  • 单页滚动
  • 淡入、下落和水波动画
  • Web优化性能
  • 简单 API 集成
  • 响应式布局支持
  • 平滑滚动过渡

适合对象

  • Flutter Web 开发人员
  • 着陆页创建者
  • 交互式UI设计工具
  • 面向前端的应用构建工具
  • 初学者寻求快速滚动效果

使用建议

  • 仅限网页平台
  • 可能需要针对复杂布局进行调整
  • 动画性能取决于设备
  • 不适用于移动应用
  • 最适合用于静态或半动态内容

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

OPscroll_web

OPScroll

A simple and easy to use library that creates OnePage sites for Flutter Web Developers! Make a beautiful and smooth landing pages with OPScroll with in minutes. Try out our Web Demo App.


name

Table of contents

Installing

1. Depend on it

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

dependencies:
  opscroll_web: ^0.0.2
2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get
3. Import it

Now in your Dart code, you can use:

import 'package:opscroll_web/opscroll_web.dart';

Usage

OPScroll is a Stateful Widget that produces OnePage scroll mechanicsm for your Flutter Web Projects. Include it in your build method like:

OpscrollWeb({
  onePageChildren:[],
  pageController:PageController(),
  scrollCurve : Curves.easeIn,
  scrollSpeed : const Duration(milliseconds: 900),
  floatingButtonBackgroundColor :Colors.white,
  floatingButtonSplashColor : Colors.white,
  isFloatingButtonActive : false,
  isTouchScrollingActive : false,
  scrollingAnimationOptions: ScrollingAnimationOptions.Default,
  scrollDirection = Axis.vertical,
})

Scrolling Options

You can allow to scrolling by tapping.Just give the true value to isTouchScrollingActive

isTouchScrollingActive=true,

You can allow to scrolling by Floating Action Button.Just give the true value to isFloatingButtonActive Also you can change background & splash colors.

isTouchScrollingActive=true, //Optional
floatingButtonBackgroundColor :Colors.white, //Optional
floatingButtonSplashColor : Colors.white, //Optional

Scrolling Animations

There are 4 scrolling options for OPScroll.

enum ScrollingAnimationOptions { Fading, Drop, Circle, Default }

You can only choice 1 scrolling animation options.


Fading Scrolling Animation

OpscrollWeb(
   isFloatingButtonActive: true,
   isTouchScrollingActive: true,
   pageController: pageController,
   scrollingAnimationOptions: ScrollingAnimationOptions.Fading,
   scrollSpeed: const Duration(milliseconds: 900,
   onePageChildren:[]),

Circle Scrolling Animation

OpscrollWeb(
   isFloatingButtonActive: true,
   isTouchScrollingActive: true,
   pageController: pageController,
   scrollingAnimationOptions: ScrollingAnimationOptions.Circle,
   scrollSpeed: const Duration(milliseconds: 600,
   onePageChildren:[]),

Drop Scrolling Animation

OpscrollWeb(
   isFloatingButtonActive: true,
   isTouchScrollingActive: true,
   pageController: pageController,
   scrollingAnimationOptions: ScrollingAnimationOptions.Drop,
   scrollSpeed: const Duration(milliseconds: 600,
   onePageChildren:[]),

Up Coming

  • [:white_check_mark:] Fade Scroll Effect
  • [:white_check_mark:] Drop Scroll Effect
  • [:hourglass_flowing_sand:] New Scroll Effects

所属分类

源码仓库

使用此插件的项目

暂无相关数据。