Advertisement
FNP_CMDs

Untitled

Jun 16th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 2.54 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. class HomePage extends StatefulWidget {
  4.   @override
  5.   _HomePageState createState() => _HomePageState();
  6. }
  7.  
  8. class _HomePageState extends State<HomePage> {
  9.  
  10.   @override
  11.   void initState() {
  12.     super.initState();
  13.  
  14.   }
  15.   @override
  16.   void dispose() {
  17.     super.dispose();
  18.   }
  19.   @override
  20.   Widget build(BuildContext context) {
  21.     return MaterialApp(
  22.       debugShowCheckedModeBanner: false,
  23.       home:Scaffold(
  24.         body: Stack(
  25.           children: <Widget>[
  26.             Stack(
  27.               children: <Widget>[
  28.                 SafeArea(
  29.                   child: ScrollConfiguration(
  30.                       behavior: ScrollBehavior(),
  31.                       child: GlowingOverscrollIndicator(
  32.                         axisDirection: AxisDirection.down,
  33.                         color: Colors.transparent,
  34.                         child: CustomScrollView(
  35.                           slivers: <Widget>[
  36.                             SliverPadding(
  37.                               padding: EdgeInsets.only(top: 30),
  38.                               sliver: SliverAppBar(
  39.                                 backgroundColor: Colors.transparent,
  40.                                 elevation: 0,
  41.                                 forceElevated: false,
  42.                                 expandedHeight: 0,
  43.                                 flexibleSpace: FlexibleSpaceBar(
  44.                                   title: Text('Trending', style: TextStyle(fontWeight: FontWeight.w900, color: Colors.white, fontSize: 28)),
  45.                                   titlePadding: EdgeInsets.only(left: 25, bottom: 15),
  46.                                 ),
  47.                                 actions: <Widget>[
  48.                                   Container(
  49.                                       margin: EdgeInsets.only(right: 12),
  50.                                       child: FloatingActionButton(
  51.                                         elevation: 40,
  52.                                         onPressed: () {},
  53.                                         child: Icon(Icons.search, color: Colors.white,),
  54.                                         backgroundColor: Color(0xff00c4e7),
  55.                                       )
  56.                                   )
  57.                                 ],
  58.                               ),
  59.                             ),
  60.                           ],
  61.                         ),
  62.                       )
  63.                   )
  64.                 )
  65.               ],
  66.             )
  67.            ]
  68.         )
  69.       )
  70.     );
  71.   }
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement