123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- import 'package:cpt_main/modules/feedback/page/feedback_page.dart';
- import 'package:cs_resources/generated/assets.dart';
- import 'package:cs_resources/generated/l10n.dart';
- import 'package:flutter/material.dart';
- import 'package:widgets/ext/ex_widget.dart';
- import 'package:widgets/my_load_image.dart';
- class MainState {
- //底部数据Map
- final Map bottomMap = {
- S.current.home: [
- const MyAssetImage(
- //默认
- Assets.mainTabHomeUnselected,
- width: 20,
- height: 20,
- ).marginOnly(bottom: 4),
- const MyAssetImage(
- Assets.mainTabHomeSelected,
- width: 20,
- height: 20,
- ).marginOnly(bottom: 4),
- const MyAssetImage(
- //暗色
- Assets.mainTabHomeSelected,
- width: 20,
- height: 20,
- color: Colors.white,
- ).marginOnly(bottom: 4)
- ],
- S.current.visitor: [
- const MyAssetImage(
- Assets.mainTabVisitorUnselected,
- width: 20,
- height: 20,
- ).marginOnly(bottom: 4),
- const MyAssetImage(
- Assets.mainTabVisitorSelected,
- width: 20,
- height: 20,
- ).marginOnly(bottom: 4),
- const MyAssetImage(
- Assets.mainTabVisitorSelected,
- width: 20,
- height: 20,
- color: Colors.white,
- ).marginOnly(bottom: 4)
- ],
- S.current.feedback: [
- const MyAssetImage(
- Assets.mainTabFeedbackUnselected,
- width: 20,
- height: 20,
- ).marginOnly(bottom: 4),
- const MyAssetImage(
- Assets.mainTabFeedbackSelected,
- width: 20,
- height: 20,
- ).marginOnly(bottom: 4),
- const MyAssetImage(
- Assets.mainTabFeedbackSelected,
- width: 20,
- height: 20,
- color: Colors.white,
- ).marginOnly(bottom: 4)
- ],
- S.current.me: [
- const MyAssetImage(
- Assets.mainTabMeUnselected,
- width: 20,
- height: 20,
- ).marginOnly(bottom: 4),
- const MyAssetImage(
- Assets.mainTabMeSelected,
- width: 20,
- height: 20,
- ).marginOnly(bottom: 4),
- const MyAssetImage(
- Assets.mainTabMeSelected,
- width: 20,
- height: 20,
- color: Colors.white,
- ).marginOnly(bottom: 4),
- ],
- };
- }
|