scroll_pos 0.5.0 copy "scroll_pos: ^0.5.0" to clipboard
scroll_pos: ^0.5.0 copied to clipboard

Provides some additional functions to ScrollController to define item position relative to the screen.

example/lib/main.dart

import 'package:example/listview.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'ScrollPosController demo',
      theme: ThemeData(
        primarySwatch: Colors.orange,
        listTileTheme: ListTileThemeData(
          selectedTileColor: Colors.orangeAccent.withOpacity(0.3),
          selectedColor: Colors.black,
        ),
      ),
      home: Scaffold(
        appBar: AppBar(
          title: const Text('ScrollPosController Demo'),
        ),
        body: const ExampleListView(),
      ),
    );
  }
}
56
likes
130
pub points
95%
popularity

Publisher

verified publisherwinxaito.com

Provides some additional functions to ScrollController to define item position relative to the screen.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on scroll_pos