SHARE
TWEET

articles.dart

a guest Jul 16th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class MyAppBar3 extends StatelessWidget {
  2.   final String imgUrl3;
  3.   const MyAppBar3({Key key, this.imgUrl3}) : super(key: key);
  4.  
  5.   @override
  6.   Widget build(BuildContext context) {
  7.     return SliverAppBar(
  8.       centerTitle: false,
  9.       shape: RoundedRectangleBorder(
  10.           borderRadius: BorderRadius.vertical(bottom: Radius.circular(15.0))),
  11.       actions: <Widget>[
  12.         IconButton(
  13.           icon: IconButton(
  14.             icon: Icon(Icons.star_border),
  15.             onPressed: () {
  16.             },
  17.           ),
  18.           tooltip: 'Dodaj do ulubionych!',
  19.           onPressed: () {},
  20.         )
  21.       ],
  22.       backgroundColor: Colors.green[800],
  23.       expandedHeight: 250.0,
  24.       pinned: true,
  25.       flexibleSpace: FlexibleSpaceBar(
  26.         background: Image.network(
  27.           imgUrl3,
  28.           fit: BoxFit.cover,
  29.         ),
  30.       ),
  31.       title: const Text(
  32.         'xxxx',
  33.         style: TextStyle(fontFamily: 'OpenSans', fontSize: 15.0),
  34.       ),
  35.     );
  36.   }
  37. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top