main.dart
import 'package:flutter/material.dart';
void main(){
runApp(
MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text("Flutter - Text Uppercase")
),
body: Container(
alignment: Alignment.center,
padding: const EdgeInsets.all(8),
child: Text(
"i am a text.".toUpperCase(),
style: const TextStyle(fontSize: 50)
)
),
),
)
);
}
More flutter tutorials
- flutter – Text overflow ellipsis
- flutter – Text capitalize first letter
- flutter – ElevatedButton onPressed
- flutter – How to add padding to ElevatedButton
- flutter – How to change ElevatedButton size
- flutter – How to change ElevatedButton splash color
- flutter – MaterialStateProperty size
- flutter – How to change ElevatedButton shape
- flutter – How to create rounded corners ElevatedButton
- flutter – ElevatedButton border radius only
- flutter – How to change OutlinedButton splash color
- flutter – How to add padding to OutlinedButton
- flutter – OutlinedButton shape
- flutter – IconButton remove splash
- flutter – How to disable an IconButton