小编Pie*_*ter的帖子

为Flutter应用添加启动画面

您如何为Flutter应用添加启动画面?它应该在任何其他内容之前加载和显示.目前,在Scaffold(home:X)小部件加载之前,会有一个短暂的颜色闪烁.

flutter

96
推荐指数
13
解决办法
5万
查看次数

在Flutter App上隐藏Android状态栏

如何在Flutter应用程序中隐藏Android状态栏?

Android状态栏

flutter

33
推荐指数
7
解决办法
2万
查看次数

iTextSharp:对dotnet核心的任何支持(netstandard1.6)?

我一直在使用iTextSharp与常规的dotnet应用程序.我们有兴趣将它与dotnet核心一起使用.但似乎新的dotnet核心平台仍然不支持该库:

包iTextSharp 5.5.10与netstandard1.6不兼容

您是否计划在未来版本中支持dotnet核心?

itext .net-core .net-standard-1.6

14
推荐指数
1
解决办法
1万
查看次数

颤振相机叠加

我一直在为即将到来的项目做一些研究,并想在自定义形状/半透明img后面渲染相机视图,以便在拍照时充当指南.

有没有人知道一个颤动的相机插件或教程解释如何做到这一点?

android-camera ios-camera flutter

8
推荐指数
2
解决办法
6176
查看次数

BoxDecoration: DecorationImage 全屏背景图片

根据Flutter 文档,我尝试使用 DecoratedBox 加载全屏图像作为容器的背景图像。

我的 pubspec.yaml 包含嵌入式资产的相关定义:

flutter:
  uses-material-design: true
  assets:
    - assets/background.png
Run Code Online (Sandbox Code Playgroud)

并且 widget.dart 尝试按照规定填充新容器的背景:

@override
  Widget build(BuildContext context) {
    return new Container(
            decoration: new BoxDecoration(
              color: Colors.purple,
              image : new DecorationImage(
                image: new ExactAssetImage('assets/background.png'),
                fit: BoxFit.cover,
              ),
            ),
     ),
  }
Run Code Online (Sandbox Code Playgroud)

但我收到以下错误:

Unable to load asset: assets/background.png 

Image provider: ExactAssetImage(name: "assets/background.png", scale: 1.0, bundle: null)
Run Code Online (Sandbox Code Playgroud)

显然,包没有正确解析。有没有人知道我在这里做错了什么?

dart flutter

6
推荐指数
1
解决办法
7109
查看次数

IDistributedCache 删除密钥

我最近开始在 dotnet core web api 上使用 IDistributedCache 的 sql 版本。

您将如何删除/使特定用户的一组密钥无效?

即:我构建了遵循此约定的密钥:

/users/{userId}/Key1
/users/{userId}/Key2
/users/{userId}/Section/Key3
Run Code Online (Sandbox Code Playgroud)

我找不到任何方法来删除以下开头的所有键:/users/{userId}

如何一次从 IDistributedCache 中删除一项以上?

sql-server distributed-cache .net-core

5
推荐指数
1
解决办法
2233
查看次数