IconAppBar.titleWithSearchField constructor
Implementation
IconAppBar.titleWithSearchField({
String? title,
super.key,
VoidCallback? onBackButtonPressed,
}) : appBar = Builder(
builder: (BuildContext context) => Container(
decoration: const BoxDecoration(
border: Border(
bottom: BorderSide(
color: ColorName.gray100,
),
),
),
child: AppBar(
centerTitle: true,
leading: ButtonBox(
onTap: onBackButtonPressed ?? () => context.pop(),
padding: Insets.h16v12,
child: Assets.icons.arrowLeft.svg(),
),
title: title == null
? null
: Text(
title,
style: context.textTheme.bodyMedium?.copyWith(
fontSize: 18,
fontWeight: FontWeight.w700,
),
),
),
),
),
height = kToolbarHeight;