当前位置: 首页 > news >正文

ThingsBoard - APP图片更改为彩色(失败)

问题描述

在手机APP中,登录窗口的LOGO图片没有彩色。

问题分析

原始资源图片是彩色的,这肯定是代码中做了处理。已知该图片文件名为thingsboard_big_logo.svg

//\flutter_thingsboard_app\lib\constants\assets_path.dartabstractclassThingsboardImage{staticconstthingsBoardWithTitle='assets/images/thingsboard_with_title.svg';staticconstthingsboard='assets/images/thingsboard.svg';staticconstthingsboardOuter='assets/images/thingsboard_outer.svg';staticconstthingsboardCenter='assets/images/thingsboard_center.svg';staticconstdashboardPlaceholder='assets/images/dashboard-placeholder.svg';staticconstdeviceProfilePlaceholder='assets/images/device-placeholder.svg';staticconstnoDataImage='assets/images/no-data.svg';staticconstthingsboardBigLogo='assets/images/thingsboard_big_logo.svg';...
\flutter_thingsboard_app\lib\core\auth\login\select_region\select_region_screen.dartimport'package:flutter/material.dart';import'package:flutter_svg/flutter_svg.dart';import'package:thingsboard_app/config/routes/router.dart';import'package:thingsboard_app/constants/assets_path.dart';import'package:thingsboard_app/core/auth/login/select_region/model/region.dart';import'package:thingsboard_app/core/context/tb_context_widget.dart';import'package:thingsboard_app/generated/l10n.dart';import'package:thingsboard_app/locator.dart';import'package:thingsboard_app/utils/services/endpoint/i_endpoint_service.dart';import'package:thingsboard_app/utils/ui/tb_text_styles.dart';classSelectRegionScreenextendsTbContextStatelessWidget{SelectRegionScreen(super.tbContext,{super.key});@overrideWidgetbuild(BuildContextcontext){returnScaffold(body:SafeArea(child:Column(children:[SvgPicture.asset(ThingsboardImage.thingsboardBigLogo),constSizedBox(height:166),Expanded(child:Padding(padding:constEdgeInsets.symmetric(horizontal:24),child:Column(children:[Text(S.of(context).selectRegion,style:TbTextStyles.titleMedium.copyWith(color:Colors.black.withValues(alpha:.76),),),constSizedBox(height:16),SizedBox(width:double.infinity,child:ElevatedButton(onPressed:(){getIt<IEndpointService>().setRegion(Region.northAmerica,);getIt<ThingsboardAppRouter>().navigateTo('/');},style:ElevatedButton.styleFrom(padding:constEdgeInsets.symmetric(horizontal:16,vertical:8,),textStyle:TbTextStyles.labelMedium,),child:Text(S.of(context).northAmerica),),),constSizedBox(height:10),SizedBox(width:double.infinity,child:ElevatedButton(onPressed:(){getIt<IEndpointService>().setRegion(Region.europe);getIt<ThingsboardAppRouter>().navigateTo('/');},style:ElevatedButton.styleFrom(padding:constEdgeInsets.symmetric(horizontal:16,vertical:8,),textStyle:TbTextStyles.labelMedium,),child:Text(S.of(context).europe),),),],),),),],),),);}}

问题解决

该问题尚未解决。

http://www.jsqmd.com/news/221229/

相关文章:

  • 正交电感的频率特性测量
  • 用Nginx日志风格复刻《黑客帝国》代码雨:终端里的赛博朋克特效
  • Thinkphp-Laravel微信小程序积分商城购物系跑腿配送系统_09ok4
  • 网安校招不踩坑!3 类岗位薪资拆解(10-50 万)+ 技能要求,应届生精准匹配指南
  • MR2A08A-4Mb 8位I/O并行接口MRAM
  • 部署CA证书
  • Thinkphp-Laravel电子设备商品商城采购系统的研究与设计
  • 【收藏】1536维vs512维:低维嵌入模型如何实现RAG性能翻倍?颠覆认知的技术选型实践
  • 从脚本小子到高手!黑客自学 5 本必读书,覆盖基础 / 实战 / 社会工程,附电子书
  • 空心正交电感两路线圈信号极值偏移方向
  • 2026企业AI Agent规模化落地:四大核心趋势详解,收藏这份从0到1的实战指南
  • 网安工程师狂喜!8 款必备黑客工具 + 安装包,一次全分享,收藏即封神!
  • 收藏!AI、ML、DL和NLP的区别与联系,一篇彻底搞懂
  • 动态加载库:dlopen详解-deepseek
  • 安川代码移植:基于瑞萨芯片且无PCB的主板原理图探索
  • 收藏必看!RAG与CAG全面对比:如何选择最适合你的LLM知识整合方案
  • 跑步即工程:精确掌控你的身体
  • 【例4-2】牛的旅行(信息学奥赛一本通- P1343)
  • RK3399E Android 11 将自己的库放到系统库方法
  • 面向自然科学领域机器学习与深度学习(高维数据预处理—可解释ML/DL—时空建模—不确定性量化-全程AI+Python)
  • 网络安全IT产业就业与发展前景---个人观点分析分享,专业才能端好饭碗
  • AI水遥感---水体提取、水深反演、水温监测、水质参数AI反演,流水系,河道宽度提取等
  • 用Sambert-HifiGan为电子相册添加情感化语音描述
  • Thinkphp-Laravel+uniapp微信小程序的医院专家门诊预约挂号系统
  • 基于大数据爬虫+Hadoop的日漫推荐系统设计与实现
  • 2026年国自然申请书大改版,今年的基金本子如何写??
  • 代码随走随写!Jupyter Notebook+cpolar 让你的编程工作台 “装进口袋”
  • Thinkphp-Laravel+uniapp微信小程序的外卖点餐点单系统 商家协同过滤
  • CLIP图文匹配微调实战
  • PDF-Extract-Kit新闻稿处理:自动提取5W1H要素,媒体人必备