reusable_app_bar 0.0.1 copy "reusable_app_bar: ^0.0.1" to clipboard
reusable_app_bar: ^0.0.1 copied to clipboard

A customizable Flutter package providing advanced AppBar widgets with flexible layouts, profile avatars, background images, and more.

example/main.dart

import 'package:flutter/material.dart';
import 'package:reusable_app_bar/views/app_bars/reusable_app_bar.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Reusable App Bar Demo',
      theme: ThemeData(
        primarySwatch: Colors.teal,
      ),
      home: const HomeScreen(),
    );
  }
}

class HomeScreen extends StatelessWidget {
  const HomeScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppSimpleAppBar(
        titleTxt: 'Home',
        centerTitle: true,
        bgColor: Colors.teal,
        actions: [
          IconButton(
            icon: const Icon(Icons.search),
            onPressed: () {
              // Handle search
            },
          ),
        ],
      ),
      body: Center(
        child: ElevatedButton(
          child: const Text('Go to Profile'),
          onPressed: () {
            Navigator.push(
              context,
              MaterialPageRoute(builder: (context) => const ProfileScreen()),
            );
          },
        ),
      ),
    );
  }
}

class ProfileScreen extends StatelessWidget {
  const ProfileScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return BottomMiddleAvatarScaffold(
      titleTxt: 'Profile',
      bgImageSource: 'https://via.placeholder.com/600x200',
      imageSource: 'https://via.placeholder.com/150',
      body: const Center(
        child: Text('User Profile Page'),
      ),
    );
  }
}
0
likes
140
points
55
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable Flutter package providing advanced AppBar widgets with flexible layouts, profile avatars, background images, and more.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

app_style, bloc, flutter, flutter_bloc, reusable_icon, reusable_image_widget, text_field_builder

More

Packages that depend on reusable_app_bar