项目作者: jja08111

项目描述 :
The NestedScrollView works like Samsung ONE UI's extendable AppBar.
高级语言: Dart
项目地址: git://github.com/jja08111/one_ui_scroll_view.git
创建时间: 2020-12-12T03:18:52Z
项目社区:https://github.com/jja08111/one_ui_scroll_view

开源协议:

下载


One Ui Scroll View

The NestedScrollView works like Samsung ONE UI’s extendable AppBar. I recommand using the one_ui plugin instead of this.

EXAMPLE

example

HOW TO USE

  • Here is sample code.
  1. import 'package:flutter/cupertino.dart';
  2. import 'package:flutter/material.dart';
  3. import 'package:flutter/rendering.dart';
  4. import 'one_ui_scroll_view/one_ui_scroll_view.dart';
  5. void main() => runApp(MyApp());
  6. class MyApp extends StatelessWidget {
  7. @override
  8. Widget build(BuildContext context) {
  9. return MaterialApp(
  10. title: 'OneUiScrollViewDemo',
  11. home: ExamplePage(),
  12. );
  13. }
  14. }
  15. class ExamplePage extends StatelessWidget {
  16. @override
  17. Widget build(BuildContext context) {
  18. return Scaffold(
  19. body: OneUiScrollView(
  20. expandedTitle: Text('ONE UI SCROLL VIEW', style: TextStyle(fontSize: 32)),
  21. collapsedTitle: Text('Home', style: TextStyle(fontSize: 24)),
  22. actions: [
  23. IconButton(icon: const Icon(Icons.more_vert), onPressed: () {}),
  24. ],
  25. children: List<Widget>.generate(100, (index) {
  26. return Padding(
  27. padding: const EdgeInsets.all(16),
  28. child: Text(
  29. 'List ${index + 1}',
  30. style: TextStyle(fontSize: 24),
  31. ),
  32. );
  33. }),
  34. ),
  35. );
  36. }
  37. }

CHANGELOG

0.1.0

Implement custom scroll physics

0.0.1

Init upload