小编RK *_*ios的帖子

在 Flutter 文本字段中从上到下更改光标位置

我需要更改文本表单字段内光标的位置。我设法将光标的高度减小 1,但光标的位置仍然位于顶部。我无法将其移动到底部。

我想实现这个目标:

在此输入图像描述

但我实现的是:

在此输入图像描述

Flutter 有没有办法做到这一点?

我的代码示例

TextFormField(
  style: TextStyle(
    color: Theme.of(context).textTheme.bodySmall?.color,
    fontSize: 14,
  ),
  minLines: 1,
  maxLines: 1,
  maxLength: 300,
  cursorColor: Theme.of(context).hintColor,
  textAlignVertical: TextAlignVertical.center,
  cursorHeight: 1,
  cursorWidth: 15,
);
Run Code Online (Sandbox Code Playgroud)

dart flutter textformfield flutter-textformfield

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

像颤振中的轨道一样滚动 Gridview

Flutter 没有动画网格所以,我想要实现的是像 Flutter 中的轨道一样滚动 gridview。就像下面这样。尝试使用TweenAnimationBuilderflutter_staggered_animations: ^1.0.0打包。但无法达到预期的效果

TweenAnimationBuilder 代码是

    import 'package:flutter/material.dart';
import 'dart:math' as math;

import 'package:tween_animation_check/animatedgeidView.dart';
import 'package:flutter_staggered_animations/flutter_staggered_animations.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // Try running your application with "flutter run". You'll see the
        // application has a …
Run Code Online (Sandbox Code Playgroud)

flutter flutter-animation

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

“没有 firebaseUI 这样的模块”

导入截图 @导入FirebaseUI;

当我导入此模块时,它显示“No such Module as FirebaseUI”

但我已经安装了 pod

 pod 'Firebase/Core'

 pod 'FirebaseUI'

 pod 'FirebaseUI/Auth'

 pod 'FirebaseUI/Google'

 pod 'FirebaseUI/Facebook'

 pod 'FirebaseUI/Twitter'

 pod 'FirebaseUI/Phone'
Run Code Online (Sandbox Code Playgroud)

我是 ios 新手,有人可以帮助我吗

objective-c ios firebase firebase-authentication firebaseui

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

如何在 Objective-C 中播放 Lottie 动画

我已经为 Lottie 安装了 pod 文件并从 lottiefiles.com 下载了 hello.json 文件

 LOTAnimationView *Hello_loader;
 Hello_loader = [LOTAnimationView animationNamed:@"hello"];
 [self.view addSubview:Hello_loader];
Run Code Online (Sandbox Code Playgroud)

我在两者中都尝试过viewDidLoad()viewDidAppear()但仍然没有出现

我是这个 ios 编程的新手,任何人都可以帮我解决这个问题吗?提前致谢...

animation objective-c ios lottie

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