小编Aki*_*kif的帖子

如何在 xcode 10 上创建一个胖二进制文件

我正在尝试使用 XCode 10 (10A255) 使用 Fastlane 制作我的库的胖二进制文件:

xcodebuild(
        workspace: "Mylibrary.xcworkspace",
        scheme: "Mylibrary",
        configuration: "Release",
        clean: true,
        archive: true
    )
Run Code Online (Sandbox Code Playgroud)

但是运行lipo -i ~/Mylibrary.framework/Mylibrary我只得到armv7 arm64不能在模拟器上运行的。

有谁知道发生这种情况的原因?

PS:相同的命令适用于 Xcode 9.4 和 lipo -i 打印i386 x86_64 armv7 arm64,效果很好。

xcode ios-simulator lipo fastlane xcode10

6
推荐指数
0
解决办法
386
查看次数

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

使用 NPOI 将 Excel 单元格区域格式化为表格

在此输入图像描述

我正在使用 NPOI 来操作 Excel(.xlsx) 文件数据和格式。我想知道是否有一种方法可以将单元格范围格式化为表格。

// something like.
ITable table = worksheet.FormatAsTable("A1:C4");
Run Code Online (Sandbox Code Playgroud)

在互联网上做了一些研究,但还没有运气。任何帮助将非常感激!

c# excel npoi

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

断言失败:第 4263 行第 12 行:'_debugLifecycleState!= _ElementLifecycle.defunct':不是 true。扑

我正在开发一个外语应用程序。我的申请中有多项选择题,但完成测试后出现此错误。我想知道是否有人知道这个错误的解决方案。

\n
    EXCEPTION : 'package:flutter/src/widgets/framework.dart': Failed assertion: line 4263 pos 12: '_debugLifecycleState != _ElementLifecycle.defunct': is not true.\n    \n
Run Code Online (Sandbox Code Playgroud)\n

我的密码

\n
    class LoadJson extends StatelessWidget {\n      @override\n      Widget build(BuildContext context) {\n        return Scaffold(\n          body: FutureBuilder(\n            future: DefaultAssetBundle.of(context)\n                .loadString("lib/quiz/questions.json"),\n            builder: (context, snapshot) {\n              List mydata = json.decode(snapshot.data.toString());\n              if (mydata == null) {\n                return Center(\n                  child: Text("asld\xc3\xb6asid"),\n                );\n              } else {\n                return SorularinOlacagiPage(mydata: mydata);\n              }\n            },\n          ),\n        );\n      }\n    }\n    \n    class SorularinOlacagiPage extends StatefulWidget {\n      final mydata;\n    \n      const SorularinOlacagiPage({Key key, …
Run Code Online (Sandbox Code Playgroud)

debugging android exception flutter

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

javafx datepicker 如何自定义

我有日期选择器的简单代码,它禁用所选日期之前的所有日期,但我也需要能够禁用其他日期(例如:17.10.2014 到 19.10.2014)。我怎样才能以禁用特定日期的方式更改它?

public class DatePickerSample extends Application {

private Stage stage;
private DatePicker checkInDatePicker;
private DatePicker checkOutDatePicker;

public static void main(String[] args) {
    Locale.setDefault(Locale.US);                  
    launch(args);
}

@Override
public void start(Stage stage) {
    this.stage = stage;
    stage.setTitle("DatePickerSample ");
    initUI();
    stage.show();
}

private void initUI() {
    VBox vbox = new VBox(20);
    vbox.setStyle("-fx-padding: 10;");
    Scene scene = new Scene(vbox, 400, 400);
    stage.setScene(scene);
    checkInDatePicker = new DatePicker();
    checkOutDatePicker = new DatePicker();
    checkInDatePicker.setValue(LocalDate.now());
    final Callback<DatePicker, DateCell> dayCellFactory = 
        new Callback<DatePicker, DateCell>() {
            @Override
            public …
Run Code Online (Sandbox Code Playgroud)

java javafx datepicker

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

New flutter update forces null safety?

I just updated to flutter version 1.25.0-5.0.pre.92 and I'm getting lots of null-safety related errors in my code which was previously working fine. I have not opted into null safety in any way, all I did was run flutter upgrade, and now it assumes I want to use null safety.

These are the errors:

org-dartlang-app:/pages/lightweight_table/page_lightweight_table.dart:165:81: Error: The parameter 'rowKeys' can't have a value of 'null' because of its type 'List<Key>', but the implicit default value is 'null'.
 - 'List' is …
Run Code Online (Sandbox Code Playgroud)

dart flutter

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

当底部导航栏存在时,应用程序栏与通知栏重叠

当我通过底部导航导航到页面时,页面应用栏被手机通知栏覆盖。

带有底部导航的页面:

在此输入图像描述

没有底部导航的同一页面:

在此输入图像描述

***我需要我的应用程序栏看起来像带有底部导航的第二张图片。当我对底部导航发表评论时,页面恢复正常。


  import 'package:flutter/material.dart';
    // import 'package:flutter_ecommerce_app/main.dart';
    // import 'package:font_awesome_flutter/font_awesome_flutter.dart';
    import 'package:curved_navigation_bar/curved_navigation_bar.dart';
    import 'package:flutter_ecommerce_app/screens/ShoppingCartPage(p).dart';
    import 'package:flutter_ecommerce_app/screens/HomeScreen.dart';
    import 'package:flutter_ecommerce_app/screens/profilePage.dart';
    import 'package:flutter_ecommerce_app/screens/OurStores.dart';
    import 'package:flutter_ecommerce_app/screens/NotificationsScreen.dart';
    
    class BottomNavBarWidget extends StatefulWidget {
      @override
      _BottomNavBarWidgetState createState() => new _BottomNavBarWidgetState();
    }
    
    class _BottomNavBarWidgetState extends State<BottomNavBarWidget> {
      int currentIndex = 2;
      GlobalKey _bottomNavigationKey = GlobalKey();
      final List<Widget> viewContainer = [
        StoresNearMe(),
        notifications(),
        HomeScreen(),
        CartScreen(),
        ProfilePage()
      ];
    
      @override
      Widget build(BuildContext context) {
        // void onTap(int index) {
        //   setState(() {
        //     currentIndex = index;
        //   });
        // …
Run Code Online (Sandbox Code Playgroud)

appbar flutter

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

周期性定时器无法处置

代码内容并不重要。只有一个问题:当我想离开此页面时,计时器无法处理。当我离开此页面时,sendMessage("message");功能继续运行。有什么选项可以处理这个计时器吗?

Timer timer;

@override
void initState() {
super.initState();
timer = Timer.periodic(new Duration(seconds: 5), (timer) async {
          setState(() {
            unicode++;
            unicodeString = unicode.toString();
            if (unicodeString.length < 6) {
              int different = 6 - unicodeString.length;
              for (var i = 0; i < different; i++) {
                unicodeString = "0" + unicodeString;
              }
            }
            sendMessage("meesage");
              showSnackBarWithKey("Message Sended !");
          });
    });
}
 @override
 void dispose() {
 timer.cancel();
 super.dispose();
}
Run Code Online (Sandbox Code Playgroud)

错误如下。

小部件库捕获异常在完成小部件树时抛出以下断言:'package:flutter/src/widgets/framework.dart': 失败的断言: line 4182 pos 12: '_debugLifecycleState != _ElementLifecycle.defunct': is not true 。该断言要么表明框架本身存在错误,要么我们应该在此错误消息中提供更多信息,以帮助您确定并修复根本原因。无论哪种情况,请通过在 …

dart flutter

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

ios 上的 Flutter 文本转语音低音量

在我的 ios 应用程序中,我使用flutter tts。它在 Android 上按预期工作,但在 ios 上音量非常低,因为音频来自耳机(而不是扬声器)。因此,音量非常非常低。如何将音频输出切换到扬声器?欢迎任何建议。提前致谢。

这是我的代码:

    await flutterTts.setSpeechRate(Platform.android == true ? 0.97 : 0.53);
    await flutterTts.speak("I am a Flutter developer");
Run Code Online (Sandbox Code Playgroud)

flutter

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

警告数据库已锁定 0:00:10.000000。确保在事务期间始终使用事务对象进行数据库操作

我正在尝试从远程服务器获取图像。我不断收到此错误:

  Warning database has been locked for 0:00:10.000000. 
  Make sure you always use the transaction object for database operations during a transaction
Run Code Online (Sandbox Code Playgroud)

之后我的应用程序崩溃了。


Widget carousel = new Container(
      height: 200,
      child: FutureBuilder<List<String>>(
          future: getPropImgs(),
          builder: (context, snapshot) {
            if (snapshot.hasData) {
              return new Carousel(
                
                boxFit: BoxFit.cover,
                images: snapshot.data.map((f) {
                  return new CachedNetworkImage(
                    imageUrl: f.toString(),
                    imageBuilder: (context, imageProvider) => Container(
                      decoration: BoxDecoration(
                        image: DecorationImage(
                            image: imageProvider,
                            fit: BoxFit.cover,
                            colorFilter:
                                ColorFilter.mode(Colors.blue, BlendMode.dstIn)),
                      ),
                    ),
                    placeholder: (context, url) => Center(
                        child: Container(
                            height: …
Run Code Online (Sandbox Code Playgroud)

android flutter

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