import 'dart:io'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; class HomeAppBar extends StatelessWidget { const HomeAppBar({super.key}); @override Widget build(BuildContext context) { return SliverAppBar( // forceElevated: true, scrolledUnderElevation: 0, toolbarHeight: MediaQuery.of(context).padding.top, expandedHeight: kToolbarHeight + MediaQuery.of(context).padding.top, automaticallyImplyLeading: false, pinned: true, floating: true, primary: false, flexibleSpace: LayoutBuilder( builder: (context, constraints) { return FlexibleSpaceBar( background: Column( children: [ AppBar( centerTitle: false, title: const Text( 'PiLiPaLa', style: TextStyle( fontSize: 20, fontWeight: FontWeight.bold, letterSpacing: 1, fontFamily: 'ArchivoNarrow', ), ), actions: [ IconButton( onPressed: () {}, icon: const Icon(CupertinoIcons.search, size: 22), ), // IconButton( // onPressed: () {}, // icon: const Icon(CupertinoIcons.bell, size: 22), // ), const SizedBox(width: 10) ], elevation: 0, scrolledUnderElevation: 0, ), ], ), ); }, ), ); } }