Skip to main content

Flutter Create Italic Style Text

To create italic style text in flutter we have to define FontStyle.italic text style. Italic style text is a bit curved text. This type of text style is basically used with cursive writing.

Flutter Create Italic Style Text:

1. Define Text widget and apply FontStyle.italic on Text.
Text(
        'Simple Dummy Text',
        style: TextStyle(fontStyle: FontStyle.italic, fontSize: 34),
      )
2. Complete source code for main.dart file:
import 'package:flutter/material.dart';

void main() => runApp(const App());

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Scaffold(
          body: Center(
              child: Text(
        'Simple Dummy Text',
        style: TextStyle(fontStyle: FontStyle.italic, fontSize: 34),
      ))),
    );
  }
}
Screenshot of app:
Flutter Create Italic Style Text

Comments