In this blog, I am going to adding text Widget in Mobile App in flutter using Dart Packages. So, I am using VS Code Editor for easy and fast before creating a Project and open “main.dart” in editor and import-
import “package:flutter/material.dart”;
Here, in flutter all screen to called widget like text, button, body. And I to explain the text widget. So, before run App create an app named “myapp”. After that, I am using StatelessWidget and create title name, theme color, home, body and using Scaffold method for text and create child and write text in “Text” and for a design using style –
color: Colors.red,
fontStyle: FontStyle.italic,
fontWeight: FontWeight.bold,
fontSize: 30,
backgroundColor: Colors.yellow,
letterSpacing: 0.8,
wordSpacing: 1,
fontFamily: "Times new Roman",
Code Mention below-
- Top 10 Website Development Companies in Vadodara - December 20, 2024
- Compare SAST, DAST and RASP & its Tools for DevSecOps - December 19, 2024
- Comparing AWS, Azure, and Google Cloud in terms of services - December 19, 2024