草庐IT

flutter_plugins_tools

全部标签

【flutter滑动拼图验证码】

Java后台使用aj_captcha插件,提供/captcha/get(获取captcha底图和拼块图片)、/captcha/check(验证拼图偏移量)这两个接口。并且这个插件在GitHub上有源码。1.先准备好aj_captcha的工具类:import'dart:convert';import'package:steel_crypt/steel_crypt.dart';//import'package:encrypt/encrypt.dart';classEncryptUtil{///aes加密///[key]AesCrypt加密key///[content]需要加密的内容字符串stati

flutter开发实战-Release环境与Debug调试环境配置实现

flutter开发实战-Release环境与Debug调试环境配置实现在开发中,我们经常遇到Release与Debug相关请求等配置隔离。这里记录之前的实现方案。在实现之前,我们需要先看下git_it一、get_it在开发过程中,需要App的部分逻辑与Widget分离。git_it和provider都可以用作状态管理,这里使用的是git_it,我使用git_it缘由就是获取时不强制依赖context。GetIt是一个用于Dart和Flutter项目的简单服务定位器,其中包含一些受到Splat启发的附加功能。它可以用来代替InheritedWidget或Provider比如从你的用户界面来访问对

flutter mac环境配置

在macOS上安装和配置Flutter开发环境-Flutter中文文档-Flutter中文开发者网站-Flutter一、配置flutter环境变量在macOS上安装和配置Flutter开发环境-Flutter中文文档-Flutter中文开发者网站-Flutter解压文件放在我的文档里面然后设置环境变量1.执行打开.bash_profile文件的命令:open-e.bash_profile如果你看到.bash_profiledoesnotexist.执行touch.bash_profile创建bash_profile文件2.打开.bash_profile文件后直接在最末尾处追加设置flutter

Module build failed (from ./node_modules/postcss-loader/dist/cjs.js): Error: PostCSS plugin autopref

使用vue+uni-app开发微信小程序运行后报错Modulebuildfailed(from./node_modules/postcss-loader/dist/cjs.js):Error:PostCSSpluginautoprefixerrequiresPostCSS8.Migrationguideforend-users:https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users解决办法报错原因:autoprefixer版本过高解决方案:降低autoprefixer版本执行:npmipostcss-loaderautop

Flutter利用ScrollController获取、控制滚动组件的滚动位置

Flutter中的可滚动组件主要由三个角色组成:Scrollable、Viewport和Sliver。我们如何利用ScrollController来获取滚动组件的滚动位置1、先构建一个ScrollControllerScrollController_controller=ScrollController();2、初始化时绑定滚动事件监听//监听滚动事件,打印滚动位置_controller.addListener((){print("_controller.offset=${_controller.offset}");3、将构建的ScrollController和可滚动组件关联,即指定可滚动组件

Flutter利用ScrollController获取、控制滚动组件的滚动位置

Flutter中的可滚动组件主要由三个角色组成:Scrollable、Viewport和Sliver。我们如何利用ScrollController来获取滚动组件的滚动位置1、先构建一个ScrollControllerScrollController_controller=ScrollController();2、初始化时绑定滚动事件监听//监听滚动事件,打印滚动位置_controller.addListener((){print("_controller.offset=${_controller.offset}");3、将构建的ScrollController和可滚动组件关联,即指定可滚动组件

mac下配置Flutter环境变量

1.执行打开.bash_profile文件的命令:open-e.bash_profile如果你看到.bash_profiledoesnotexist.执行touch.bash_profile创建bash_profile文件2.打开.bash_profile文件后直接在最末尾处追加设置flutterbin目录路径为环境变量:exportPATH=${PATH}:/Users/leeyukun/flutter/bin3.保存关闭.bash_profile文件之后,需要执行以下命令,更新环境变量:source~/.bash_profile打开终端执行flutterdoctor就发现有效果了.bash

mac下配置Flutter环境变量

1.执行打开.bash_profile文件的命令:open-e.bash_profile如果你看到.bash_profiledoesnotexist.执行touch.bash_profile创建bash_profile文件2.打开.bash_profile文件后直接在最末尾处追加设置flutterbin目录路径为环境变量:exportPATH=${PATH}:/Users/leeyukun/flutter/bin3.保存关闭.bash_profile文件之后,需要执行以下命令,更新环境变量:source~/.bash_profile打开终端执行flutterdoctor就发现有效果了.bash

mac python3.9安装pyqt5、qt5、pyqt5-tools

仅供参考,需要根据自己实际修改!!!arm架构建议直接使用pyqt6,不折腾pyqt5pyqt6安装参考PyQT6:看这一篇就够了pythonPyQt6常用操作以及常见问题解决pycharm配置tools一pip安装转义安装参考链接#一条代码就可以搞定没错,使用的是Rosetta2x86_64模式安装的arch-x86_64python3-mpipinstallPyQt5arch-x86_64python3-mpipinstallpyqt5-tools二brew安装arm版以下pip命令自行更具自己环境选择pip或pip3在安装pyqt前必须先安装sip包pip3installsip完成sip

ubuntu安装vmware tools

如果您使用的是Ubuntu操作系统并在VMware虚拟机中运行,您可以安装VMwareTools来提高虚拟机的性能和功能。步骤如下:在VMware虚拟机菜单中选择VM,然后选择安装VMwareTools。将VMwareTools软件包复制到Ubuntu虚拟机的桌面。打开终端,并进入到该目录,例如:cd~/Desktop