news 2026/4/17 20:39:58

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

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
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),),),],),),),],),),);}}

问题解决

该问题尚未解决。

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/4/17 20:43:26

安川代码移植:基于瑞萨芯片且无PCB的主板原理图探索

安川代码移植的主板原理图 无pcb 采用瑞萨芯片在工业自动化领域&#xff0c;安川的技术一直有着广泛的应用。今天咱来聊聊安川代码移植到基于瑞萨芯片且无PCB设计的主板原理图相关的事儿。 瑞萨芯片的优势 瑞萨芯片在这类应用中有不少亮点。它以高性能、低功耗著称&#xff0c;…

作者头像 李华
网站建设 2026/3/26 8:51:50

2026年国自然申请书大改版,今年的基金本子如何写??

内容如下&#xff1a;您在撰写国家自然科学基金项目申请书时&#xff0c;是否曾为“研究方案”“技术路线”“研究方法”等名词所困扰、是否对“研究目标”和“拟解决的关键科学问题”有什么本质区别而绞尽脑汁&#xff1f;长期以来&#xff0c;申请书模板中过于固化的条条框框…

作者头像 李华
网站建设 2026/4/10 21:12:35

PDF-Extract-Kit新闻稿处理:自动提取5W1H要素,媒体人必备

PDF-Extract-Kit新闻稿处理&#xff1a;自动提取5W1H要素&#xff0c;媒体人必备 这个工具能帮你解决什么问题 作为一名媒体编辑&#xff0c;每天面对堆积如山的PDF新闻稿&#xff0c;你是否经常遇到这些困扰&#xff1a; - 需要手动从几十页文档中找出关键人物、时间、地点 …

作者头像 李华
网站建设 2026/4/16 0:02:34

导师不会说的8个AI写论文神器,1小时万字全学科覆盖!

90%的学生还在为论文熬夜秃头&#xff0c;殊不知顶级的学术大牛和聪明的同门&#xff0c;早已在用这些“信息差”工具悄悄开挂。今天&#xff0c;我就来揭秘那些藏在导师电脑里、学术圈内秘而不宣的AI论文“黑科技”&#xff0c;让你彻底告别写作焦虑&#xff0c;效率直接拉满&…

作者头像 李华
网站建设 2026/4/16 12:16:01

Thinkphp-Laravel+uniapp微信小程序高校学生兼职系统的设计与实现

目录摘要项目开发技术介绍PHP核心代码部分展示系统结论源码获取/同行可拿货,招校园代理摘要 随着移动互联网的快速发展&#xff0c;高校学生兼职需求日益增长&#xff0c;传统兼职信息发布方式存在信息不对称、管理效率低等问题。基于ThinkPHP-Laravel框架与UniApp技术&#x…

作者头像 李华
网站建设 2026/4/13 5:33:54

AssetStudio GUI完整指南:Unity资源逆向工程的得力助手

AssetStudio GUI完整指南&#xff1a;Unity资源逆向工程的得力助手 【免费下载链接】AssetStudio AssetStudio is a tool for exploring, extracting and exporting assets and assetbundles. 项目地址: https://gitcode.com/gh_mirrors/as/AssetStudio AssetStudio GUI…

作者头像 李华