发布于 5年前

Flutter 输入框高度自适应

import 'package:flutter/material.dart';

class TestPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Material(
      child: Container(
        child: SingleChildScrollView(
          scrollDirection: Axis.vertical,
          reverse: true,
          child: TextField(
            maxLines: null,
          ),
    )));
  }
}
©2020 edoou.com   京ICP备16001874号-3