How To Break Text From Line Using Flutter Android App

admin_img Posted By Bajarangi soft , Posted On 09-10-2020

Backward slash also known as backslash with small n character is used to divide a line from between in Flutter. Sometimes we have so much text in flutter mobile application and all the text seems to pushing each other.

How To Break Text From Line Using Flutter Android App

 Break Text From Line

Complete Code For Break Text From Line In Flutter
Main.dart

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
        home: Scaffold(
            appBar: AppBar(
              backgroundColor: Colors.deepOrange,
                title: Text('Break Text Line From Middle')
            ),
            body: Center(
                child: Text('Lorem Ipsum, \nis simply dummy text of  \nthe printing and typesetting industry.',
                    style: TextStyle(fontSize: 22), textAlign: TextAlign.center)
            )
        )
    );
  }
}

Related Post