Skip to content

Instantly share code, notes, and snippets.

@collinjackson
Created July 20, 2017 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save collinjackson/29cbcb8a48b2267a2f5b157feead2639 to your computer and use it in GitHub Desktop.
Save collinjackson/29cbcb8a48b2267a2f5b157feead2639 to your computer and use it in GitHub Desktop.
import 'dart:math' as math;
import 'package:flutter/material.dart';
class PosseDemo extends StatelessWidget {
Widget build(BuildContext context) {
return new Scaffold(
body: new CustomScrollView(
slivers: [
new SliverAppBar(
pinned: true,
expandedHeight: 200.0,
title: new Text('AppBar example'),
flexibleSpace: new FlexibleSpaceBar(
background: new Image.network(
'http://i.telegraph.co.uk/multimedia/archive/02830/cat_2830677b.jpg',
fit: BoxFit.cover,
),
),
),
new SliverToBoxAdapter(
child: new Container(
height: 600.0,
child: new FlutterLogo(),
),
)
],
),
);
}
}
void main() {
runApp(new MaterialApp(home: new PosseDemo()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment