universal_scroll_view
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.