IconAppBar constructor

IconAppBar({
  1. Key? key,
  2. double height = kToolbarHeight,
})

Implementation

IconAppBar({
  super.key,
  this.height = kToolbarHeight,
}) : appBar = Builder(
        builder: (BuildContext context) => AppBar(
          leadingWidth: 100,
          centerTitle: true,
          leading: context.canPop.call()
              ? ButtonBox(
                  onTap: context.pop,
                  padding: Insets.a4,
                  child: Row(
                    mainAxisSize: MainAxisSize.min,
                    children: <Widget>[
                      Assets.icons.arrowLeft.svg(),
                      Gap.w4,
                      Text(
                        'back'.translate,
                        style: context.textTheme.bodyLarge?.copyWith(
                          fontWeight: FontWeight.w500,
                        ),
                      ),
                    ],
                  ),
                )
              : null,
          title: Assets.images.appLogo.svg(
            width: 67,
            fit: BoxFit.scaleDown,
          ),
        ),
      );