news 2026/9/3 4:50:10

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/9/2 21:46:55

PDF-Extract-Kit持续集成:CI/CD流水线配置

PDF-Extract-Kit持续集成&#xff1a;CI/CD流水线配置 1. 背景与目标 1.1 项目背景 PDF-Extract-Kit 是一个基于深度学习的 PDF 智能内容提取工具箱&#xff0c;由开发者“科哥”二次开发构建。该工具集成了布局检测、公式识别、OCR 文字提取、表格解析等核心功能&#xff0…

作者头像 李华
网站建设 2026/9/2 16:17:25

Thinkphp-Laravel+uniapp微信小程序的研学旅游服务系统的设计与实现

目录摘要项目开发技术介绍PHP核心代码部分展示系统结论源码获取/同行可拿货,招校园代理摘要 研学旅游服务系统基于ThinkPHP-Laravel框架与UniApp技术栈开发&#xff0c;整合微信小程序实现多端协同服务。系统采用B/S架构&#xff0c;后端通过Laravel提供RESTful API接口&#…

作者头像 李华
网站建设 2026/9/2 21:47:30

导师推荐!专科生必用TOP8 AI论文平台:开题报告神器测评

导师推荐&#xff01;专科生必用TOP8 AI论文平台&#xff1a;开题报告神器测评 2026年专科生论文写作工具测评&#xff1a;为何需要这份榜单&#xff1f; 随着AI技术在学术领域的广泛应用&#xff0c;越来越多的专科生开始借助AI工具提升论文写作效率。然而&#xff0c;面对市场…

作者头像 李华
网站建设 2026/9/2 21:47:21

Sambert-HifiGan在智能办公设备中的语音助手应用

Sambert-HifiGan在智能办公设备中的语音助手应用 引言&#xff1a;让语音助手“有情感”地说话 在智能办公场景中&#xff0c;语音助手正从简单的指令响应工具演变为具备自然交互能力的“数字员工”。然而&#xff0c;传统TTS&#xff08;Text-to-Speech&#xff09;系统合成的…

作者头像 李华
网站建设 2026/9/2 22:28:34

从静态图到动态视频:开源镜像助力内容创作者提效300%

从静态图到动态视频&#xff1a;开源镜像助力内容创作者提效300% &#x1f3af; 内容创作新范式&#xff1a;图像转视频技术崛起 在短视频与视觉内容主导流量的时代&#xff0c;内容创作者正面临前所未有的效率挑战。传统视频制作流程复杂、耗时长&#xff0c;而AI生成技术的突…

作者头像 李华
网站建设 2026/9/2 23:54:14

用Sambert-HifiGan为电子书添加真人级语音朗读

用Sambert-HifiGan为电子书添加真人级语音朗读 引言&#xff1a;让文字“开口说话”——中文多情感语音合成的现实需求 在数字阅读时代&#xff0c;电子书、在线文档和知识类内容正以前所未有的速度增长。然而&#xff0c;长时间盯着屏幕阅读不仅容易疲劳&#xff0c;也限制了信…

作者头像 李华