Multiple Line In Flutter :
This flutter tutorial post multiple line In Flutter. That is used application comment, address etc…
TextField widget
maxLines: 5
Screenshot :

main.dart
import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Tutorial', theme: ThemeData( primarySwatch: Colors.blue, ), home: MyHomePage(title: 'Flutter Multiple Line'), ); } } class MyHomePage extends StatefulWidget { MyHomePage({Key key, this.title}) : super(key: key); final String title; @override _MyHomePageState createState() => _MyHomePageState(); } class _MyHomePageState extends State<MyHomePage> { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text(widget.title), ), body: Container( margin: EdgeInsets.all(8.0), padding: EdgeInsets.only(bottom: 40.0), child: TextField( maxLines: 5, decoration: InputDecoration( hintText: "Enter comment", border: OutlineInputBorder(), ), ), ), // This trailing comma makes auto-formatting nicer for build methods. ); } }
The flutter tutorial is a website that bring you the latest and amazing resources of code. All the languages codes are included in this website. The languages like flutter, android, java,kotlin etc.with the help of this languages any user can develop the beautiful application
For more information about Flutter. visit www.fluttertutorial.in