小编jaz*_*bpn的帖子

仿真器:警告:已安装HAXM 6.0.5.请安装HAXM> = 6.2.1以修复Mac上的兼容性问题

模拟器未运行.我已经安装了HAXM 6.2.1.请检查图像.

在此输入图像描述

所以,我刚刚重新安装了HAXM.Anow现在又出现了另一个问题.请结帐图像第二和第三.

6:54 PM模拟器:原因:参数无效

6:54 PM模拟器:coreaudio:无法锁定audioInputDeviceIOProc的语音

在此输入图像描述 在此输入图像描述

android android-emulator ios haxm ibm-mobilefirst

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

改变FLUTTER中TextFormField的默认边框颜色

当 TextFormField 未激活时,无法更改默认边框颜色。当 TextFormField 未激活时,它会显示 DarkGrey-Border 颜色。那么,如何改变它。

在此处输入图片说明

Theme(
              data: new ThemeData(
                primaryColor: Colors.red,
                primaryColorDark: Colors.black,
              ),
              child: TextFormField(
                decoration: new InputDecoration(
                  labelText: "Enter Email",
                  fillColor: Colors.white,
                  border: new OutlineInputBorder(
                    borderRadius: new BorderRadius.circular(25.0),
                    borderSide: new BorderSide(),
                  ),
                  //fillColor: Colors.green
                ),
                validator: (val) {
                  if (val.length == 0) {
                    return "Email cannot be empty";
                  } else {
                    return null;
                  }
                },
                keyboardType: TextInputType.emailAddress,
                style: new TextStyle(
                  fontFamily: "Poppins",
                ),
              ),
            ),
Run Code Online (Sandbox Code Playgroud)

default textfield dart flutter flutter-layout

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

Firebase Crashlytics:上传缺少的dSYM以查看1个版本的崩溃.(iOS)

错误消息: 上传缺少的dSYM以查看1个版本的崩溃.受影响的版本:1.0(1)

我正在尝试在我的iOS项目中实现Firebase Crashlytics.我根据Firebase Crashlytics Doucmentation进行了所有设置.单击按钮时手动执行崩溃,以查看崩解是否正常.

@IBAction func onTestCrashButtonClick(_ sender: UIButton) {

    Crashlytics.sharedInstance().crash()

}
Run Code Online (Sandbox Code Playgroud)

但是当我试图在firebase控制台中看到错误报告时,它会显示类似这样的图像.

在此输入图像描述

阅读Get Deobfuscated崩溃报告之后,我只需将调试信息格式设置为DWARF,dSYM文件如下所示,但问题直到现在才得到修复. 在此输入图像描述

ios deobfuscation firebase crashlytics

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

W/FirebaseMessaging:AndroidManifest 中缺少默认通知通道元数据。将使用默认值

我们的应用程序现在有 targetSdkVersion 26 ( Android 8 ) 并且应用程序使用 FCM 推送通知。当应用程序处于前台状态时,推送通知运行良好。当应用程序不在前台状态时单击通知时会出现此问题。我刚刚在清单中添加了元数据,但仍然出现相同的错误。

AndroidManifest.xml

<meta-data
    android:name="com.google.firebase.messaging.default_notification_channel"
    android:value="@string/default_notification_channel_id"/>
Run Code Online (Sandbox Code Playgroud)

MyFirebaseMessagingService.java

/**
 * Create and show a simple notification containing the received FCM message.
 */
private void sendNotification(NotificationModel notificationModel) 
{
    Intent intent;
    if (notificationModel.getAppLink() != null) 
    {
        intent = new Intent(Intent.ACTION_VIEW);
        intent.setData(Uri.parse(notificationModel.getAppLink()));
    } else 
    {
        intent = new Intent(this, NoticeActivity.class);
    }

    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
    PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent,
            PendingIntent.FLAG_ONE_SHOT);
    Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);

    NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this);

    if (notificationModel.getAppLink() != null) …
Run Code Online (Sandbox Code Playgroud)

push-notification android-notifications firebase-cloud-messaging android-studio-3.0 android-8.0-oreo

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

以编程方式使 dart 中的十六进制颜色变亮或变暗

我正在尝试以编程方式将此哈希颜色代码 #159424 (GREEN-COLOR) 转换为更暗和更亮。如何做到这一点,请帮忙?

使绿色变深

toDarkColor(String hashColor){
  // how to convert that hash string to make green color darker?
}
Run Code Online (Sandbox Code Playgroud)

使绿色更亮

toLightColor(String hashColor){
  // how to convert that hash string to make green color lighter? 
}
Run Code Online (Sandbox Code Playgroud)

color-scheme colors uicolor dart flutter-layout

14
推荐指数
6
解决办法
8147
查看次数

如何在 Flutter 中滚动或跳转到 PageView.builder 或 PageController 的位置?

问题:使用 PageController * 加载网页浏览后无法滚动到 POSITION

像 ViewPager 滚动到 Android 中的特定页面

Widget _buildCarousel(BuildContext context, int selectedIndex) {

    PageController controller = PageController(viewportFraction: 1, keepPage: true);
    return Column(
      mainAxisSize: MainAxisSize.min,
      children: <Widget>[
        SizedBox(
          // you may want to use an aspect ratio here for tablet support
          height: 400.0,
          width: 240,
          child: PageView.builder(
            itemCount: assetImageList.length,
            controller: controller,
            itemBuilder: (BuildContext context, int itemIndex) {
              return _buildCarouselItem(context, selectedIndex, itemIndex);
            },
          ),
        )
      ],
    );
  }
Run Code Online (Sandbox Code Playgroud)

scroll position pageviews flutter flutter-layout

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

如何在 xcode 9.3 中找到 DWARF_DSYM_FOLDER_PATH 和 DWARF_DSYM_FILE_NAME

我正在使用 Crashlytics 来报告 iOS 应用程序中发生的崩溃。在这里,我想知道如何在xcode中找到这些dwarf文件夹和文件下面的路径:

DWARF_DSYM_FOLDER_PATH

DWARF_DSYM_FILE_NAME

xcode dwarf ios crashlytics

12
推荐指数
3
解决办法
7391
查看次数

带有标题的 Flutter GridView

如何在 FLUTTER 中创建带有可滚动工具栏的网格视图。我找到了带有标题ListViewWithHeader的列表视图。但是我需要像下面提到的图像中那样带有标题的 GridView。我使用 SilverGrid ignorer 来构建这个布局,这有点滞后。所以我需要另一种选择。

在此处输入图片说明

Container setDataToContainer() {
  return Container(
    color: Colors.white,
    margin: EdgeInsets.only(left: 4.0, right: 4, bottom: 4, top: 4),
    child: CustomScrollView(
      slivers: <Widget>[
        SliverList(
          delegate: SliverChildListDelegate(
            [
              HeaderWidget("Header 1"),
            ],
          ),
        ),
        SliverGrid(
          gridDelegate:
              SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2),
          delegate: SliverChildListDelegate(
            [
              BodyWidget("title", "key_x", "pnl.svg"),
              BodyWidget("title2", "key_x", "cls.svg"),
              BodyWidget(
                  "title3", "key_x", "irr.svg"),
              BodyWidget(
                  "title4", "key_x", "icp.svg"),
            ],
          ),
        ),
        SliverList(
          delegate: SliverChildListDelegate(
            [
              HeaderWidget("Header 2"),
            ],
          ),
        ),
        SliverGrid(
          gridDelegate:
              SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2),
          delegate: SliverChildListDelegate(
            [
              BodyWidget("title5", "key_x", …
Run Code Online (Sandbox Code Playgroud)

gridview flutter flutter-sliver flutter-layout flutter-appbar

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

创建可调整大小的视图,在 FLUTTER 中从角落和侧面捏合或拖动时调整大小

在此处输入图片说明

我目前正在开发一个 ScreenView,它具有可拖动和可调整大小的视图,如上图所示,带有角和边。我现在遇到的问题是我想通过角落里的触摸手势来调整视图的大小。因此,我想到了一个点,将其添加到选择视图中,可以拖动它来调整所选视图的大小。答案更新了!!

Resizable-Widget ReactNative Demo: React Native PLUGIN 示例

修改后的可行示例:

  import 'package:flutter/material.dart';

  class ResizeWidget extends StatefulWidget {
    @override
    _ResizeWidgetState createState() => _ResizeWidgetState();
  }

  class _ResizeWidgetState extends State<ResizeWidget> {
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        home: Scaffold(
          backgroundColor: Colors.black,
          body: Container(
            // padding: EdgeInsets.only(top: 50),
            child: ResizebleWidget(
              child: Container(
                padding: EdgeInsets.all(10),
                child: Text(
                  'Waao!! you can really dance.',
                  style: TextStyle(
                      color: Colors.white,
                      fontStyle: FontStyle.italic,
                      fontSize: 18),
                ),
              ),
            ),
          ),
        ),
      );
    }
  }

  class ResizebleWidget extends StatefulWidget {
    ResizebleWidget({this.child}); …
Run Code Online (Sandbox Code Playgroud)

resize image-resizing window-resize flutter flutter-layout

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

是否可以在单个项目/应用程序中为发布和调试模式创建不同的Firebase数据库?

在这里,我们正在开发使用Firebase实时数据库的项目.是否可以在单个Android应用程序中为发布调试模式制作不同的Firebase数据库?

项目:(具有发布/调试模式的应用程序)

  1. 调试模式(测试环境) - Firebase数据库1
  2. 发布模式(生产环境) - Firebase数据库2

为Firebase数据库解决此测试/生产环境的最佳方法是什么?

android firebase firebase-realtime-database

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