我是新来的颤音和创造一个车载屏幕。我想在动画之前添加文本。我怎么能这么做?感谢你在这方面的帮助。
import 'package:flutter/material.dart';
import 'package:lottie/lottie.dart';
class IntroPageOne extends StatelessWidget {
const IntroPageOne({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: Column(
children: [
Center(
child: Lottie.network('https://assets5.lottiefiles.com/packages/lf20_u5nd9awf.json'),
),
],
),
);
}
}发布于 2022-05-02 19:57:18
我找到了办法。
返回脚手架( backgroundColor: Colors.white,body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text("ghdwg"),
Lottie.network('https://assets8.lottiefiles.com/packages/lf20_xkxecivz.json'),
],
),
),
);https://stackoverflow.com/questions/72091462
复制相似问题