sliver_scaffold 0.0.3

  • Example
  • Installing
  • Versions
  • 72


SliverScaffold combine Sliver with Scaffold Widgets.

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

[0.0.1] - 04/Sep/2018. [0.0.2] - add isScrollView param - enable scollable body [0.0.3] - add Scaffold to widget.body for scollable area


import 'package:flutter/material.dart';
import 'package:sliver_scaffold/sliver_scaffold.dart';
//import 'package:timeline_flow/timeline_flow.dart';

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Flutter Demo',
      theme: new ThemeData(
        // This is the theme of your application.
        // Try running your application with "flutter run". You'll see the
        // application has a blue toolbar. Then, without quitting the app, try
        // changing the primarySwatch below to and then invoke
        // "hot reload" (press "r" in the console where you ran "flutter run",
        // or press Run > Flutter Hot Reload in IntelliJ). Notice that the
        // counter didn't reset back to zero; the application is not restarted.
      home: new MyHomePage(title: 'Flutter Sample SliverScaffold'),

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  // This widget is the home page of your application. It is stateful, meaning
  // that it has a State object (defined below) that contains fields that affect
  // how it looks.

  // This class is the configuration for the state. It holds the values (in this
  // case the title) provided by the parent (in this case the App widget) and
  // used by the build method of the State. Fields in a Widget subclass are
  // always marked "final".

  final String title;

  _MyHomePageState createState() => new _MyHomePageState();

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      // This call to setState tells the Flutter framework that something has
      // changed in this State, which causes it to rerun the build method below
      // so that the display can reflect the updated values. If we changed
      // _counter without calling setState(), then the build method would not be
      // called again, and so nothing would appear to happen.

  Widget build(BuildContext context) {
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return new SliverScaffold(
      appBar: new AppBar(
        // Here we take the value from the MyHomePage object that was created by
        // the method, and use it to set our appbar title.
        title: new Text(widget.title),
      radius: 15.0,

      sliverAppBar: SliverAppBar(
        actions: <Widget>[Icon(Icons.access_alarms)],
        floating: true,
        expandedHeight: 280.0,
        title: Text('SliverAppBar Title'),
        flexibleSpace: FlexibleSpaceBar(
          title: Text('FlexibleSpaceBar Title'),
          background: Image.asset('assets/imagem.jpg'),
        new Column(
          children: <Widget>[
            new Text(
              'You have pushed the button this many times:',
            new Text(
              style: Theme.of(context).textTheme.display1,
/*        Expanded(child:TimelineView.builder(
            bottom: 40.0,
            left: 30.0,
            leftLine: 45.0,
            bottomLine: 40.0,
            itemCount: 20,
            itemBuilder: (index) {
              return TimelineTile(
                title: Text(
                  'text $index',
                subTitle: Text(' sub-title $index'),
                icon: Icon(
                  (index.isEven ? Icons.history : Icons.check),
                  color: (index.isEven ? :,
                gap: 0.0,
                trailing: Text('15:00'),
              ),*/      ]),
      floatingActionButton: new FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: new Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.

Use this package as a library

1. Depend on it

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

  sliver_scaffold: ^0.0.3

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:

import 'package:sliver_scaffold/sliver_scaffold.dart';
Version Uploaded Documentation Archive
0.0.3 Sep 21, 2018 Go to the documentation of sliver_scaffold 0.0.3 Download sliver_scaffold 0.0.3 archive
0.0.2 Sep 5, 2018 Go to the documentation of sliver_scaffold 0.0.2 Download sliver_scaffold 0.0.2 archive
0.0.1 Sep 4, 2018 Go to the documentation of sliver_scaffold 0.0.1 Download sliver_scaffold 0.0.1 archive
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 Nov 14, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.6
  • Flutter: 0.11.3


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Package is pre-v0.1 release. (-10 points)

While there is nothing inherently wrong with versions of 0.0.*, it usually means that the author is still experimenting with the general direction of the API.


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