import 'package:flutter/material.dart'; import 'package:konectar_events/contacts_module/constants.dart'; import 'package:konectar_events/contacts_module/custom_widget/text.dart'; import 'package:konectar_events/utils/appcolors.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( backgroundColor: AppColors.blueColor, leading: IconButton( icon: const Icon( Icons.arrow_back_ios_new, color: AppColors.contentColorWhite, ), onPressed: () => Navigator.of(context).pop(false), ), title: Text1( title: widget.title, txtcolor: AppColors.contentColorWhite, ), actions: [], ); } }