Created
May 1, 2023 14:25
-
-
Save rubywai/09198ee6e05d7c3a2d45cb02c7996489 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
//Google => Material | |
//Iphone => Cupertino | |
//Widget => less ,ful | |
//debug //release // hybrid | |
//Container | |
//project file network memory | |
void main() { | |
runApp(const MaterialApp( | |
debugShowCheckedModeBanner: false, | |
home: FirstApp(), | |
)); | |
} | |
class FirstApp extends StatelessWidget { | |
const FirstApp({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar(), | |
body: Center( | |
child: RichText( | |
text: const TextSpan( | |
children: [ | |
TextSpan(text: 'H',style: TextStyle(color : Colors.blue,fontSize: 25),), | |
TextSpan(text: 'E',style: TextStyle(color : Colors.red,fontSize: 35)), | |
TextSpan(text: 'L',style: TextStyle(color : Colors.green,fontSize: 35)), | |
TextSpan(text: 'L',style: TextStyle(color : Colors.pink,fontSize: 35)), | |
TextSpan(text: 'O',style: TextStyle(color : Colors.black,fontSize: 35)), | |
] | |
), | |
), | |
) | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment