import 'package:discover_module/contacts_module/custom_widget/text.dart'; import 'package:flutter/material.dart'; class CustomAppbar extends StatefulWidget { final String title; const CustomAppbar({super.key, required this.title}); @override State createState() => _CustomAppbarState(); } class _CustomAppbarState extends State { @override Widget build(BuildContext context) { return AppBar( leading: IconButton( icon: const Icon(Icons.arrow_back_ios_new), onPressed: () => Navigator.of(context).pop(false), ), title: Text1(title: widget.title), actions: [], ); } }