|
@@ -53,7 +53,6 @@ class FormPage extends HookConsumerWidget {
|
|
|
color: context.appColors.whiteBG,
|
|
|
height: 120,
|
|
|
child: Row(
|
|
|
- mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
children: [
|
|
|
_buildCategory(
|
|
|
context,
|
|
@@ -62,11 +61,12 @@ class FormPage extends HookConsumerWidget {
|
|
|
44,
|
|
|
S.current.apply,
|
|
|
tabsRouter.activeIndex == 0,
|
|
|
+ 14.0,
|
|
|
).onTap(
|
|
|
() {
|
|
|
tabsRouter.setActiveIndex(0);
|
|
|
},
|
|
|
- ),
|
|
|
+ ).expanded(),
|
|
|
_buildCategory(
|
|
|
context,
|
|
|
Assets.formSubmitIcon,
|
|
@@ -74,11 +74,12 @@ class FormPage extends HookConsumerWidget {
|
|
|
39,
|
|
|
S.current.form_submit_title,
|
|
|
tabsRouter.activeIndex == 1,
|
|
|
+ 14.0,
|
|
|
).onTap(
|
|
|
() {
|
|
|
tabsRouter.setActiveIndex(1);
|
|
|
},
|
|
|
- ),
|
|
|
+ ).expanded(),
|
|
|
_buildCategory(
|
|
|
context,
|
|
|
Assets.formApprovedIcon,
|
|
@@ -86,11 +87,12 @@ class FormPage extends HookConsumerWidget {
|
|
|
39,
|
|
|
S.current.approved,
|
|
|
tabsRouter.activeIndex == 2,
|
|
|
+ 14.0,
|
|
|
).onTap(
|
|
|
() {
|
|
|
tabsRouter.setActiveIndex(2);
|
|
|
},
|
|
|
- ),
|
|
|
+ ).expanded(),
|
|
|
_buildCategory(
|
|
|
context,
|
|
|
Assets.formNotApprovedIcon,
|
|
@@ -98,13 +100,14 @@ class FormPage extends HookConsumerWidget {
|
|
|
39.5,
|
|
|
S.current.not_approved,
|
|
|
tabsRouter.activeIndex == 3,
|
|
|
+ 13.0,
|
|
|
).onTap(
|
|
|
() {
|
|
|
tabsRouter.setActiveIndex(3);
|
|
|
},
|
|
|
- ),
|
|
|
+ ).expanded(),
|
|
|
],
|
|
|
- ),
|
|
|
+ ).paddingOnly(left: 5, right: 5),
|
|
|
),
|
|
|
Expanded(
|
|
|
child: child,
|
|
@@ -117,7 +120,7 @@ class FormPage extends HookConsumerWidget {
|
|
|
}
|
|
|
|
|
|
//顶部的Tab布局
|
|
|
- Widget _buildCategory(BuildContext context, String iconPath, double iconWidth, double iconHeight, String title, bool isSelected) {
|
|
|
+ Widget _buildCategory(BuildContext context, String iconPath, double iconWidth, double iconHeight, String title, bool isSelected, double testSize) {
|
|
|
return Column(
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
@@ -146,7 +149,7 @@ class FormPage extends HookConsumerWidget {
|
|
|
const SizedBox(height: 7),
|
|
|
MyTextView(
|
|
|
title,
|
|
|
- fontSize: 15,
|
|
|
+ fontSize: testSize,
|
|
|
isFontMedium: true,
|
|
|
textColor: isSelected ? context.appColors.tabTextSelectedDefault : context.appColors.tabTextUnSelectedDefault,
|
|
|
),
|