DiscoverModule/lib/contacts_module/custom_widget/custom_appbar.dart

25 lines
667 B
Dart

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<CustomAppbar> createState() => _CustomAppbarState();
}
class _CustomAppbarState extends State<CustomAppbar> {
@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: <Widget>[],
);
}
}