universal_scroll_view 1.0.4
universal_scroll_view: ^1.0.4 copied to clipboard

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

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.

3
likes
130
pub points
32%
popularity

Publisher

cullen.ml

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

Homepage

Documentation

API reference

License

GPL-3.0 (LICENSE)

Dependencies

flutter, universal_html

More

Packages that depend on universal_scroll_view