v0.3.2opscroll_web
Flutter Web용 단일 페이지 스크롤 기능을 제공하는 라이브러리입니다. 간단하고 빠르게 단일 페이지 랜딩 페이지를 만들 수 있으며, 페이드&드롭&워터와 같은 다른 스크롤 애니메이션도 제공합니다.
Flutter Web용 한 페이지 스크롤 패키지
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
https://media.giphy.com/media/UjyBgiG2NjM4nYghBh/giphy.gif?cid=790b761177a01e756ce8a2f4e90dc103b29ddc59d2eb0581&rid=giphy.gif&ct=g
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.
Add this to your package's pubspec.yaml file:
dependencies:
opscroll_web: ^0.0.2
You can install packages from the command line:
with pub:
$ pub get
with Flutter:
$ flutter pub get
Now in your Dart code, you can use:
import 'package:opscroll_web/opscroll_web.dart';
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,
})
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
There are 4 scrolling options for OPScroll.
enum ScrollingAnimationOptions { Fading, Drop, Circle, Default }
You can only choice 1 scrolling animation options.
OpscrollWeb(
isFloatingButtonActive: true,
isTouchScrollingActive: true,
pageController: pageController,
scrollingAnimationOptions: ScrollingAnimationOptions.Fading,
scrollSpeed: const Duration(milliseconds: 900,
onePageChildren:[]),
OpscrollWeb(
isFloatingButtonActive: true,
isTouchScrollingActive: true,
pageController: pageController,
scrollingAnimationOptions: ScrollingAnimationOptions.Circle,
scrollSpeed: const Duration(milliseconds: 600,
onePageChildren:[]),
OpscrollWeb(
isFloatingButtonActive: true,
isTouchScrollingActive: true,
pageController: pageController,
scrollingAnimationOptions: ScrollingAnimationOptions.Drop,
scrollSpeed: const Duration(milliseconds: 600,
onePageChildren:[]),