Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyAppBar3 extends StatelessWidget {
- final String imgUrl3;
- const MyAppBar3({Key key, this.imgUrl3}) : super(key: key);
- @override
- Widget build(BuildContext context) {
- return SliverAppBar(
- centerTitle: false,
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.vertical(bottom: Radius.circular(15.0))),
- actions: <Widget>[
- IconButton(
- icon: IconButton(
- icon: Icon(Icons.star_border),
- onPressed: () {
- },
- ),
- tooltip: 'Dodaj do ulubionych!',
- onPressed: () {},
- )
- ],
- backgroundColor: Colors.green[800],
- expandedHeight: 250.0,
- pinned: true,
- flexibleSpace: FlexibleSpaceBar(
- background: Image.network(
- imgUrl3,
- fit: BoxFit.cover,
- ),
- ),
- title: const Text(
- 'xxxx',
- style: TextStyle(fontFamily: 'OpenSans', fontSize: 15.0),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement