小编Ste*_*cco的帖子

Flutter For Web 有没有办法存储数据?

我正在使用 flutter for web 构建一个 web 应用程序,我确信在 flutter 的移动版本中有一种方法可以在设备中存储数据,但我不知道这是否甚至在 web 的 flutter 中实现了。

web dart flutter flutter-web

13
推荐指数
1
解决办法
4583
查看次数

Flutter 用于 Web Cookie/令牌会话和身份验证

我正在使用NodeJS 和 Flutter For Web开发一个完整的堆栈应用程序,目前我不明白如何制作安全的 cookie/token 会话
我需要的答案是如何像其他社交网络或 Stackoverflow 本身一样使用 Flutter For Web 制作身份验证系统

cookies session token dart flutter

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

如何更改 Flutter for web 字体?

我正在尝试更改 Flutter for Web Application 中标题的字体,我该怎么做?我发现 pubsec.yaml 与移动版本完全不同,这里是文件:

name: projectbaseclient
description: An app built using Flutter for web

environment:
  # You must be using Flutter >=1.5.0 or Dart >=2.3.0
  sdk: '>=2.3.0 <3.0.0'

dependencies:
  flutter_web: any
  flutter_web_ui: any

dev_dependencies:
  build_runner: ^1.5.0
  build_web_compilers: ^2.1.0
  pedantic: ^1.7.0

dependency_overrides:
  flutter_web:
    git:
      url: https://github.com/flutter/flutter_web
      path: packages/flutter_web
  flutter_web_ui:
    git:
      url: https://github.com/flutter/flutter_web
      path: packages/flutter_web_ui
Run Code Online (Sandbox Code Playgroud)

这是 FontManifest.json:

[
    {
      "family": "Poppins",
      "fonts": [
        {
          "asset": "fonts/Poppins-Regular.ttf"
        }
      ]
    },
    {
      "family": "KronaOne",
      "fonts": [
        {
          "asset": "fonts/KronaOne-Regular.ttf"
        } …
Run Code Online (Sandbox Code Playgroud)

flutter flutter-web

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

如何在 Flutter For Web 上发出 HTTP 请求?

我正在构建一个对 NodeJS 服务器执行 HTTP 请求的应用程序,但是当我执行 HTTP 请求时,结果如下:

Access to XMLHttpRequest at 'http://127.0.0.1:8000/' from origin 'http://127.0.0.1:8080' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Run Code Online (Sandbox Code Playgroud)

Uncaught (in promise) Error: XMLHttpRequest error.
    dart:sdk_internal 41864:30                                    get current
package:http/src/packages/http/src/browser_client.dart 84:22  <fn>
dart:sdk_internal 99587:96                                    <fn>


    at Object.dart.createErrorWithStack (dart_sdk.js:4617)
    at Object.async._rethrow (dart_sdk.js:28723)
    at async._AsyncCallbackEntry.new.callback (dart_sdk.js:28719)
    at Object.async._microtaskLoop (dart_sdk.js:25352)
    at async._startMicrotaskLoop (dart_sdk.js:25358)
    at dart_sdk.js:25433
Run Code Online (Sandbox Code Playgroud)

这是我用来发出 HTTP 请求的代码'package:http/http.dart' as http;: …

http dart flutter flutter-web

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

树状结构中的递归

作为一个学校项目,我必须递归地使用回溯方法在迷宫中找到解决方案的路径,我通常没有用递归解决线性问题的算法问题,但是当涉及到有多个选择/路径要遵循时,我不知道如何只找到 1 个解决方案。

问题参数:

  • 用矩阵表示的迷宫,它有多种到达同一终点的方式
  • 起点

使用的语言:

  • F#

代码的输出:

????????????????????
?     ?           ??
? ??? ??? ????? ? ??
?   ?   ?   ?   ? ??
? ? ? ? ? ? ? ??? ??
?     ?Sxxxx  ?   ??
? ????? ? ?x??? ? ??
?     ?   ?xxx?   ??
? ? ? ???????x??????
? ? ?   ?   ?x    ??
? ? ??? ? ? ?x??? ??
?   ?   ? ?  x?   ??
? ??? ??? ? ?x? ? ??
?            x? …
Run Code Online (Sandbox Code Playgroud)

algorithm tree recursion f# maze

4
推荐指数
1
解决办法
337
查看次数

安装加密依赖后出现颤振错误

我正在开发一个简单的应用程序,在身份验证方面,我需要使用 encrypt 包来加密 jwt 令牌,但是由于我安装了 encrypt 依赖项,flutter 现在给了我这个错误:

    flutter pub add encrypt Launching lib\main.dart on Chrome in debug mode...
    flutter/.pub-cache/hosted/pub.dartlang.org/pointycastle-3.1.3/lib/key_derivators/argon2.dart:42:27:
Error: The integer literal 0xFFFFFFFFFFFFFFFF can't be represented exactly in JavaScript.
    Try changing the literal to something that can be represented in Javascript.
    In Javascript 0x10000000000000000 is the nearest value that can be represented exactly. static const int M32L = 0xFFFFFFFFFFFFFFFF; 
    
    flutter/.pub-cache/hosted/pub.dartlang.org/pointycastle-3.1.3/lib/src/utils.dart:313:9:
Error: The integer literal 0xFFFFFFFFFFFFFFFF can't be represented exactly in JavaScript.
    Try changing the literal to something that …
Run Code Online (Sandbox Code Playgroud)

encryption web dart flutter argon2-ffi

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

标签 统计

flutter ×5

dart ×4

flutter-web ×3

web ×2

algorithm ×1

argon2-ffi ×1

cookies ×1

encryption ×1

f# ×1

http ×1

maze ×1

recursion ×1

session ×1

token ×1

tree ×1