news 2026/4/15 6:45:36

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/10 23:26:04

AI水遥感---水体提取、水深反演、水温监测、水质参数AI反演,流水系,河道宽度提取等

随着全球水资源日益紧缺与水环境问题日益严峻&#xff0c;传统的水体监测方法已难以满足大范围、高时效、精细化的管理需求。遥感技术凭借其覆盖广、周期短、信息丰富的优势&#xff0c;正逐渐成为水环境监测的核心手段。然而&#xff0c;面对海量多源的遥感数据&#xff0c;如…

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

Thinkphp-Laravel+uniapp微信小程序的校园外卖点餐点单系统 商家协同过滤

目录校园外卖点餐系统摘要项目开发技术介绍PHP核心代码部分展示系统结论源码获取/同行可拿货,招校园代理校园外卖点餐系统摘要 基于ThinkPHP-Laravel框架与UniApp开发的校园外卖点餐系统&#xff0c;整合了商家协同过滤算法&#xff0c;为高校师生提供智能化的餐饮服务解决方案…

作者头像 李华
网站建设 2026/4/3 0:04:51

WinAsar:5分钟掌握Windows上最直观的asar文件处理技巧

WinAsar&#xff1a;5分钟掌握Windows上最直观的asar文件处理技巧 【免费下载链接】WinAsar 项目地址: https://gitcode.com/gh_mirrors/wi/WinAsar 还在为Electron应用的asar文件打包和解压而烦恼吗&#xff1f;WinAsar作为Windows平台上的终极asar处理工具&#xff0…

作者头像 李华
网站建设 2026/4/7 14:25:03

Sambert-HifiGan能力测试:多情感语音生成效果展示

Sambert-HifiGan能力测试&#xff1a;多情感语音生成效果展示 &#x1f3af; 场景定位与技术背景 在智能语音交互日益普及的今天&#xff0c;单一语调的语音合成已无法满足用户对自然度和情感表达的需求。无论是虚拟助手、有声读物&#xff0c;还是客服机器人&#xff0c;用户期…

作者头像 李华
网站建设 2026/3/26 17:27:20

推荐5个高质量Image-to-Video开源镜像站点

推荐5个高质量Image-to-Video开源镜像站点 &#x1f310; 背景与需求&#xff1a;为什么需要可靠的开源镜像&#xff1f; 随着多模态生成技术的快速发展&#xff0c;Image-to-Video&#xff08;图像转视频&#xff09; 已成为AIGC领域的重要方向。从I2VGen-XL到ModelScope&am…

作者头像 李华
网站建设 2026/3/29 1:42:51

Sambert-HifiGan+语音识别双模型协作:打造智能对话系统

Sambert-HifiGan语音识别双模型协作&#xff1a;打造智能对话系统 引言&#xff1a;构建下一代智能对话体验 随着人工智能技术的不断演进&#xff0c;自然、拟人化的人机交互已成为智能语音系统的核心追求。传统的文本对话已无法满足用户对情感表达和听觉体验的需求。为此&…

作者头像 李华