Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- class HomePage extends StatefulWidget {
- @override
- _HomePageState createState() => _HomePageState();
- }
- class _HomePageState extends State<HomePage> {
- @override
- void initState() {
- super.initState();
- }
- @override
- void dispose() {
- super.dispose();
- }
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- debugShowCheckedModeBanner: false,
- home:Scaffold(
- body: Stack(
- children: <Widget>[
- Stack(
- children: <Widget>[
- SafeArea(
- child: ScrollConfiguration(
- behavior: ScrollBehavior(),
- child: GlowingOverscrollIndicator(
- axisDirection: AxisDirection.down,
- color: Colors.transparent,
- child: CustomScrollView(
- slivers: <Widget>[
- SliverPadding(
- padding: EdgeInsets.only(top: 30),
- sliver: SliverAppBar(
- backgroundColor: Colors.transparent,
- elevation: 0,
- forceElevated: false,
- expandedHeight: 0,
- flexibleSpace: FlexibleSpaceBar(
- title: Text('Trending', style: TextStyle(fontWeight: FontWeight.w900, color: Colors.white, fontSize: 28)),
- titlePadding: EdgeInsets.only(left: 25, bottom: 15),
- ),
- actions: <Widget>[
- Container(
- margin: EdgeInsets.only(right: 12),
- child: FloatingActionButton(
- elevation: 40,
- onPressed: () {},
- child: Icon(Icons.search, color: Colors.white,),
- backgroundColor: Color(0xff00c4e7),
- )
- )
- ],
- ),
- ),
- ],
- ),
- )
- )
- )
- ],
- )
- ]
- )
- )
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement