Created
July 20, 2017 18:47
-
-
Save collinjackson/29cbcb8a48b2267a2f5b157feead2639 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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