some refactors

This commit is contained in:
amirrezaghabeli
2025-09-01 18:18:46 +03:30
parent 58308639d6
commit d8fc995804
8 changed files with 89 additions and 169 deletions
+31
View File
@@ -60,3 +60,34 @@ PreferredSizeWidget appBar({
),
);
}
PreferredSizeWidget tabletAppBar({
required String title,
required GlobalKey<ScaffoldState> key,
}) {
return PreferredSize(
preferredSize: const Size.fromHeight(64),
child: AppBar(
backgroundColor: AppColors.backgroundColor,
elevation: 0,
titleSpacing: 0,
leading: Padding(
padding: EdgeInsetsDirectional.only(start: 24.0.w()),
child: SvgPicture.asset(AssetsManager.logoSmall),
),
actions: [
IconButton(
icon: Padding(
padding: EdgeInsetsDirectional.only(end: 24.0.w()),
child: SvgPicture.asset(
AssetsManager.menu,
height: 32.0.w(),
width: 32.0.w(),
),
),
onPressed: () => key.currentState!.openDrawer(),
),
],
),
);
}