Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

keyskull/universal_scroll_view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

universal_scroll_view pub package

Universal Scroll View is a cross platform package which base on Flutter framework.

Features

  • Web: Support browser scrolling event.
    • Available desktop use mouse middle button for scrolling;
    • Available To hiding url bar in mobile browser, etc. Safari, Chrome;

Install

Install by adding this package to your pubspec.yaml:

dependencies:
  universal_scroll_view: ^[latest version]

Usage


Import

import 'package:universal_scroll_view/universal_single_child_scroll_view.dart';

Simple Example

UniversalSingleChildScrollView(
    child: Center(
        child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: List.generate(
                50,
                (index) => Container(
                    height: 500,
                    color: Colors.primaries[Random().nextInt(Colors.primaries.length)],
                    child: Center(child: Column(
                            children: [
                                Text(index.toString()),
                                Text("Supported browser scrolling event.")
                    ],
                ),
            ),
        ))),
    ),
);

License

Copyright © 2020, Jialin Li.
Released under the GNU AGPLv3.

About

Universal Scroll View is a cross-platform package which bases on the Flutter framework.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages