小编RIF*_*FAL的帖子

如何将showModalBottomSheet设置为全高

我使用showRoundedModalBottomSheet,如何调整此模式高度,直到低于应用栏?

在此处输入图片说明

dart flutter

9
推荐指数
6
解决办法
3992
查看次数

Flutter 构建 ios bitcode 问题,如何修复 bitcode 错误

我尝试在连接手机的情况下构建 ios 或 flutter build ios 我收到此错误

ld: '/Users/Library/Developer/Xcode/DerivedData/Runner-dwvxvkkosgpgqncynmszqlholtde/Build/Products/Debug-iphoneos/BoringSSL-GRPC/libBoringSSL-GRPC.a(BoringSSL-GRPC-dummy.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Users/Library/Developer/Xcode/DerivedData/Runner-dwvxvkkosgpgqncynmszqlholtde/Build/Products/Debug-iphoneos/BoringSSL-GRPC/libBoringSSL-GRPC.a' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)

如果我使用模拟器运行它的工作,在构建连接的 whit pshyscal 设备或颤动构建时出现问题如何解决?

医生 -v

[?] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.15.2 19C57, locale en)
    • Flutter version 1.12.13+hotfix.5 at /Users/user/Development/flutter …
Run Code Online (Sandbox Code Playgroud)

xcode ios flutter

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

Flutter TextFormField被键盘隐藏

注意:我使用Navigator.of(context).push来推送ModalRoute,

嗨,我的页面上ModalRouteTextFormField,但是当键盘显示时,输入正被键盘隐藏,如何解决呢?

在此处输入图片说明

return Container(
      child: ListView(
          children: <Widget>[
            //other widget
            SizedBox(height: _qtyAnimation.value),
            Row(
              children: <Widget>[
                Expanded(
                  child: Text(
                    "Jumlah",
                    style: TextStyle(fontWeight: FontWeight.bold),
                  ),
                ),
                SizedBox(
                  width: 145.0,
                  child: TextFormField(
                    focusNode: _qtyFocusNode,
                    controller: qty,
                    keyboardType: TextInputType.number,
                    textAlign: TextAlign.center,
                    decoration: InputDecoration(
                      contentPadding: EdgeInsets.all(0.0),
                      prefixIcon: IconButton(
                        icon: Icon(Icons.remove),
                        onPressed: () {},
                      ),
                      border: OutlineInputBorder(
                        borderSide:
                            BorderSide(color: Colors.grey, width: 0.1),
                      ),
                      suffixIcon: IconButton(
                        icon: Icon(Icons.add),
                        onPressed: () {},
                      ),
                    ),
                  ),
                ),
              ],
            ),
          ],
    );
Run Code Online (Sandbox Code Playgroud)

多数民众赞成在我的代码,我尝试与focusnode和更多,仍然相同的结果请帮助我

dart flutter flutter-layout

7
推荐指数
5
解决办法
6001
查看次数

如何禁用颤振上的特定日期列表

我有一个调用 showDatePicker 的代码,我的问题是如何禁用特定日期、一个、两个或多个 json 日期的列表?我尝试禁用周六和周日的 selectableDayPredicate,但是如何禁用来自 api 的 json 日期列表?

                onTap: () {
                            showDatePicker(
                              context: context,
                              initialDate:
                                  DateTime.now().add(Duration(days: 2)),
                              firstDate:
                                  DateTime.now().add(Duration(days: 1)),
                              lastDate:
                                  DateTime.now().add(Duration(days: 730)),
                              selectableDayPredicate: (DateTime val) =>
                                  val.weekday == 5 || val.weekday == 6
                                      ? false
                                      : true,
                            );
                          }
Run Code Online (Sandbox Code Playgroud)

dart flutter flutter-dependencies

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

滚动控制器和刷新指示器不起作用

我有一个 flutter 项目,当我尝试制作一个 invinite 列表视图但滚动控制器不起作用时,没有错误。也刷新指示器不起作用,但如果列表视图刷新工作的主要错误。

有关信息,如果主设置为 false,我的列表视图将不起作用,因为 main.dart 代码上的列表视图中的此列表视图

List<dynamic> list = [];
ScrollController _scrollController = ScrollController();

void initState() {
    super.initState();
    _loadData();
    _scrollController.addListener(() {
      if (_scrollController.position.pixels ==
          _scrollController.position.maxScrollExtent - 50) {
        _loadData();
      }
    });
  }

  @override
  void dispose() {
    _scrollController.dispose();
    super.dispose();
  }

  Future<dynamic> _loadData() {
    var offset = list.length;
    return Api().postData("resto",
        body: <String, String>{"offset": "$offset"}).then((dynamic res) {
      if (res["error"]) throw new Exception(res["msg"]);
      setState(() {
        list.addAll(res['data']);
      });
    });
  }

@override
  Widget build(BuildContext context) {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.end,
      children: <Widget>[
        FlatButton( …
Run Code Online (Sandbox Code Playgroud)

dart flutter

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