Skip to content

Instantly share code, notes, and snippets.

@hnoor
hnoor / custom_app_bar.dart
Last active September 6, 2022 20:35
code for custom app bar.
import 'package:flutter/material.dart';
class CustomAppBar extends StatelessWidget with PreferredSizeWidget {
final String title;
@override
final Size preferredSize;
CustomAppBar(
this.title, {
import 'package:flutter/material.dart';
class CustomAppBar extends StatelessWidget {
final String title;
const CustomAppBar(
this.title, {
Key key,
}) : super(key: key);
@override
Widget build(BuildContext context) {