custom_scrollable_screen 2.0.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 73

Custom Scrollable Screen #

Flutter package to create a custom scrollable screen.

pubspec.yaml #

  custom_scrollable_screen: <lastest_version>

Import #

import "package:custom_scrollable_screen/custom_scrollable_screen.dart";

Simple example #

  headerHeight: 250,
  headerBuilder: (context) => Container(color: Colors.amber),
  childreen: <Widget>[
    Container(height: 300, color:,
    Container(height: 250, color:,
    Container(height: 470, color: Colors.purple),

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

[2.0.0] - 2019.11.13 #

  • Refatoring.

[1.0.0] - 2019.11.11 #

  • Initial Commit


import 'package:flutter/material.dart';
import "package:custom_scrollable_screen/custom_scrollable_screen.dart";

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Custom Scrollable Screen Example',
      theme: ThemeData(primarySwatch:,
      home: CustomScrollableScreen(
        headerHeight: 250,
        headerBuilder: (context) => Container(
          color: Colors.amber,
          child: Text(
            "Custom Screen",
            style: Theme.of(context).primaryTextTheme.headline,
        childreen: <Widget>[
            borderRadius: BorderRadius.vertical(top: Radius.circular(25)),
            child: Container(
              height: 300,
            height: 250,
            borderRadius: BorderRadius.vertical(bottom: Radius.circular(25)),
            child: Container(
              height: 470,
              color: Colors.purple,

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  custom_scrollable_screen: ^2.0.0

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:custom_scrollable_screen/custom_scrollable_screen.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Apr 4, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6
  • Flutter: 1.12.13+hotfix.8

Health suggestions

Fix lib/custom_scrollable_screen.dart. (-0.50 points)

Analysis of lib/custom_scrollable_screen.dart reported 1 hint:

line 30 col 24: The member 'positions' can only be used within instance members of subclasses of 'package:flutter/src/widgets/scroll_controller.dart'.

Maintenance suggestions

The package description is too short. (-8 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies