DiscoverModule/lib/contacts_module/custom_widget/custom_appbar.dart

25 lines
667 B
Dart
Raw Permalink Normal View History

2024-11-22 10:38:43 +00:00
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>[],
);
}
}