KonectarApp/lib/contacts_module/custom_widget/custom_appbar.dart

34 lines
962 B
Dart

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