搜尋套件、儲存庫與 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

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。