小编dip*_*irl的帖子

如何在颤动中使用分页进行无限滚动

我是颤振的新手。我想使用 REST API 进行分页。我的问题是如何添加无限滚动,然后将数据加载到下一页。如何加载到“ https://MY_API_URL?page= 2 ”、第 3 页等等?任何人都可以帮助我吗?非常感谢

flutter

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

如何解决程序类型已经存在:com.google.zxing.BarcodeFormat in ionic 4

我正在使用 ionic 4. 当我的项目有 facebook 插件和 BarcodeScanner 插件并输入ionic cordova run android 时,它会出现这个错误:

Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
D8: Program type already present: com.google.zxing.BarcodeFormat

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex …
Run Code Online (Sandbox Code Playgroud)

ionic4

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

如何解决 com.android.ddmlib.InstallException: INSTALL_FAILED_UPDATE_INCOMPATIBLE

我正在使用 Mi Note3,在此之前,我可以使用 react-native run-android 从 react-native 运行代码并连接到我的手机。现在不能了。我的 MIUI 版本是 10.2,我已经打开开发者选项,USB 调试,通过 USB 安装并关闭 MIUI 优化。

android usb-debugging mi

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

如何解决与根composer.json要求冲突的问题?

当我想使用 Composer require srmklive/paypal 来安装 srmklive/paypal时,我收到类似 belok 的错误:

 Problem 1
    - srmklive/paypal[v3.0, ..., 3.0.10] require guzzlehttp/guzzle ~7.0 -> found guzzlehttp/guzzle[7.0.0, ..., 7.4.1] but it conflicts with your root composer.json require (^6.3).
    - Root composer.json requires srmklive/paypal ^3.0 -> satisfiable by srmklive/paypal[v3.0, ..., 3.0.10].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Run Code Online (Sandbox Code Playgroud)

有谁知道如何解决它?

paypal laravel

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

上传图片之前如何在图片选择器中裁剪图片

我是本机反应的新手。我想在上传图片之前裁剪图片。我正在按照本教程https://reactnativecode.com/upload-image-to-server-using-php-mysql/#comment-5335进行操作。现在我在上传之前裁剪图像有问题。如何在编码中实现裁剪功能?谁能帮我?非常感谢你。

react-native

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

Flutter 复选框在 AlertDialog 中不起作用

我正在 AlertDialog 中做一个复选框。我希望用户在上传之前勾选复选框。我的问题是,如果我将变量设置为 false ,复选框将不会更改为 true 或更改回 false。这是我的代码:

bool _isChecked = false;

List<String> _texts = [
 "I have confirm the data is correct",
 "I have agreed to terms and conditions.",
];

showConfirmationDialog(BuildContext context){
      AlertDialog alert=AlertDialog(
        title: Text('Confirmation'),
        content: 
        ListView(
        padding: EdgeInsets.all(8.0),
        children: _texts.map((text) => CheckboxListTile(
          title: Text(text),
            value: _isChecked,
            onChanged: (val) {
            setState(() {
            _isChecked = val;           
              });
            },
          )).toList(),
        ),
        actions: <Widget>[
          SizedBox(
            width: 300, 
            child:RaisedButton(
              color: Colors.blue,
              onPressed: () => upload(context), 
              child:Text('Upload'),
            )
          )
        ],
      ); …
Run Code Online (Sandbox Code Playgroud)

flutter

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

标签 统计

flutter ×2

android ×1

ionic4 ×1

laravel ×1

mi ×1

paypal ×1

react-native ×1

usb-debugging ×1