Flutter Custom Fonts in Text widget. Text Style in Flutter. Tutorial for Beginners using Dart #2.3

  Рет қаралды 96,503

Smartherd

Smartherd

5 жыл бұрын

Access 7000+ courses for 60 days FREE: pluralsight.pxf.io/c/1291657/...
Beginners tutorial for Flutter apps. Learn how to style a Text and apply custom fonts to it and also make it Italic or Bold. Also, explore how to work in 'pubspec.yaml' file
Next Video: • Flutter Row, Column an...
Previous Video: • Flutter Container widg...
Codes for this video: bit.ly/2GsNnJg
Full Source code files: bit.ly/2NINczC .
.
Please donate and support my work
(If you think my free tutorials are better than paid ones :)
- Patreon: bit.ly/patreon-donate
- Paypal/Payoneer: sriyank123@gmail.com
- UPI (only for India): smartherd@okaxis
:: If you want to develop a website or a mobile app, email me your requirement at sriyank.siddhartha@gmail.com :: Free demos provided beforehand ::
- Access my premium courses: bit.ly/sriyank-courses
Free Programming courses:
- Ruby Programming: bit.ly/smyt-r
- Dart Programming: bit.ly/smyt-d
- Kotlin Programming: bit.ly/smyt-k
- Java Programming: bit.ly/smyt-j
- Kotlin Coroutines: bit.ly/smyt-coru
Free Flutter course:
- Flutter App Development: bit.ly/2Rg7EFR
Free Android courses:
- Android using Kotlin: bit.ly/smyt-ka
- Android using Java: bit.ly/smyt-ja
- Android Material Design: bit.ly/2SMJqU6
- Android Jetpack Architecture: bit.ly/yt-j
- Android Multiple Screen Support: bit.ly/smyt-mss
- Android Retrofit: bit.ly/2Ee6GHn
More free programming courses:
- bit.ly/smy-list
Check out my website:
- bit.ly/smartherd
Let's get in touch! [Sriyank Siddhartha]
LinkedIn: bit.ly/sriyank-linkedin
Facebook: bit.ly/smartherd-facebook
Instagram: bit.ly/sriyank-instagram
Twitter: bit.ly/sriyank-twitter
Github: bit.ly/smartherd-github
--- Thank you for your love and support ---

Пікірлер: 54
@MLEncyclo
@MLEncyclo Жыл бұрын
I love you, bro. For addition, I found that my font didn't work because of the spaces despite no error appeared. I solved it by aligning the "fonts:" right under the #. I hope it helps others.
@asadullahehsan
@asadullahehsan 4 жыл бұрын
You are a really awesome person. Your tutorial is very informative, yet to the point. Keep it up. Your teaching style is wonderful.
@MuhammadAfzal-om1wn
@MuhammadAfzal-om1wn 2 жыл бұрын
I always feel some energy when you say "Perfect"
@prabhatranjan2587
@prabhatranjan2587 5 жыл бұрын
awesome tutorials...perfect for me which i was looking for start flutter.
@YasinIlhan61
@YasinIlhan61 5 жыл бұрын
.your series is awesome!
@latapatel2000
@latapatel2000 3 жыл бұрын
"PERFECT".........Really it's Perfect learning.
@JK92007
@JK92007 5 жыл бұрын
its really a nice video......nice content....thanks bro...
@nasirmehmood_
@nasirmehmood_ 4 жыл бұрын
i didn't understand why we need to be declare foneweight in pubspec.yaml since it is working correctly without declaring weight or style in yaml file. Please anybody help me
@alihamrani8723
@alihamrani8723 5 жыл бұрын
You are the best! :D
@midhunp8175
@midhunp8175 4 жыл бұрын
Thanks for this video. How to create a flutter app to send messages to Facebook or WHATSAPP with different font styles. By using Advance sharing , I can send messages to WhatsApp without font style. Hopefully..
@noelxxiv9382
@noelxxiv9382 4 жыл бұрын
Hi how do you know which Raleway was running the Bold, the regular or light? Could you clarify @smartherd?
@Ateyib
@Ateyib 5 жыл бұрын
hello, nice tutorial, but i have a question. whenever i make the font bigger(e.g fontSize: 144.0), the gap below and above the text also gets bigger. how do I avoid that if I want to place another widget directly below that text widget without any gap?
@dholakiyaparth
@dholakiyaparth 5 жыл бұрын
Perfect (y)
@SandiriNikhil
@SandiriNikhil 2 жыл бұрын
You can mention cmd+option+L (for Mac) & control+alt+L (Windows) for code formatting which helps us avoid adding/deleting spaces in pubspec.yaml
@karthickrajalearn
@karthickrajalearn 4 жыл бұрын
In 4m 35 Sec Thanks for Good Info Font Weights varries from 100 to 900 In 6m 07sec Great Tip Perfect Indentation Thanks for Mentioning 👍👍👍👍 8m 15sec Thanks for giving instructions for "Get Dependencies"
@tanishq7046
@tanishq7046 4 жыл бұрын
har bar joke marne ki koshish karte huye koi like nhi karta hehe
@ujjwal4598
@ujjwal4598 3 жыл бұрын
Thanks a lot 👍❤️
@eslamsalah832
@eslamsalah832 3 жыл бұрын
Thanks bro!
@francescogavioli8358
@francescogavioli8358 4 жыл бұрын
had to comment this line "uses-material-design: true" or it didn't execute, it's in pubspec.yaml ( it requested a key if the line wasn't commented ) Hope this helps who had my same issue
@stephanyespinosa6279
@stephanyespinosa6279 4 жыл бұрын
hello, i had a problem when i tied to run the code, i don know why, but i couldn't charge the image. i tried many times and in different projects but everytime y had the same misetake, can you help me?
@ritheshjarvis4177
@ritheshjarvis4177 3 жыл бұрын
Thanks man
@ishanmadushanka3709
@ishanmadushanka3709 2 жыл бұрын
thank you
@aarushnagar3062
@aarushnagar3062 5 жыл бұрын
Thanks for video. How to change background color of Text
@MrNsaysHi
@MrNsaysHi 5 жыл бұрын
inside the TextStyle use backgroundColor attribute, for example: Text ( "Lorem Text", style: TextStyle( backgroundColor: Colors.white, ), );
@Reem-du7sd
@Reem-du7sd 4 жыл бұрын
Can you add more than 2 fonts/"families" to .yaml?? Great video!
@anningkyeireginald8453
@anningkyeireginald8453 3 жыл бұрын
Yes you just have to copy from the family to the weight .it should not include the other family then you paste it at the end of another family
@jigaryadav6150
@jigaryadav6150 4 жыл бұрын
you can do all this in React Native by 5 min
@itsahmed-dev
@itsahmed-dev 2 жыл бұрын
Perfect
@SandiriNikhil
@SandiriNikhil 2 жыл бұрын
We need not add or delete spaces in pubspec.yaml. Just use cmd+option+L (Mac) or control+alt+L (Windows) to automatically setup indentation.
@smartherd
@smartherd 2 жыл бұрын
Thanks for the info.
@sarthaksrivastava9025
@sarthaksrivastava9025 4 жыл бұрын
Actually I am working in VS code and there is nothing called directory in it. So, please give me an alternative.
@Mr_me_only
@Mr_me_only Жыл бұрын
hello what's the shortcut to remove this # in pubspec.yaml, it's said but i didn't hear it well
@michaeltolsma7717
@michaeltolsma7717 4 жыл бұрын
My font doesn't change besides the weight and italics. It looks nothing like how the Google Fonts shows.
@chalapathinagavarmabhupath8432
@chalapathinagavarmabhupath8432 3 жыл бұрын
what happens if we use a weight that we didn't metioned in the pubspec.yml.
@vrajdesai4299
@vrajdesai4299 3 жыл бұрын
I am getting parameter format not correct error, but the app was working just fine few days back, please help me
@ashwanisingh7349
@ashwanisingh7349 3 жыл бұрын
Please share the link for raleway font style I am not able to find it in Google font
@adityatamang6016
@adityatamang6016 5 жыл бұрын
NEED HELP !! My pubspec.yaml is different than yours . It is not showing information about my projects or any types of FONTS to edit Plez help
@manishakatiyar7816
@manishakatiyar7816 3 жыл бұрын
YAML (a recursive acronym for "YAML Ain't Markup Language") ***
@knotdeveloper7433
@knotdeveloper7433 2 жыл бұрын
niceee
@kusumsingh7908
@kusumsingh7908 5 жыл бұрын
Error: unable to locate asset entry in pubspec.yaml: "fonts/Robot-Regular.ttf". Error building assets FAILURE: Build failed with an exception. How to solve this errror in this fonts
@smartherd
@smartherd 5 жыл бұрын
Compare your code with branch source code
@OystaFX
@OystaFX Жыл бұрын
If you face an error with pubspec.yaml file alignment, make sure that the parent "font" folder has four(4) spaces before "- family: Raleway" declaration. Thank me later :)
@nivyragavan6067
@nivyragavan6067 2 жыл бұрын
fonts not changing sir.. plz do help
@AgileGadgets
@AgileGadgets 5 жыл бұрын
I thought YAML stands for "Yet Another Markup Language". (shrug)
@smartherd
@smartherd 5 жыл бұрын
Oooo. Don't wry now u know
@keshavmainali3687
@keshavmainali3687 4 жыл бұрын
Ain't Markup Language
@azammehmood3678
@azammehmood3678 3 жыл бұрын
Sir i have followed ur steps but .yaml file give error in lines, when i correct them then in another line, always give me error even that 2 space after the of each.plzz help me
@zakariyamohamud8378
@zakariyamohamud8378 3 жыл бұрын
The family determines the name of the font, which you use in the fontFamily property of a TextStyle object. The asset is a path to the font file, relative to the pubspec.yaml file. These files contain the outlines for the glyphs in the font. When building the app, these files are included in the app’s asset bundle. A single font can reference many different files with different outline weights and styles:
@mahaarjun9640
@mahaarjun9640 5 жыл бұрын
"Error: unable to locate asset entry in pubspec.yaml: "fonts/Raleway-Regular.ttf". Error building assets Finished with error: Gradle task assembleDebug failed with exit code 1" What this error mean?
@smartherd
@smartherd 5 жыл бұрын
Do u have the font file in ur fonts folder? Kindly check.
@mahaarjun9640
@mahaarjun9640 5 жыл бұрын
@@smartherd yes i have did everything in the video still error persists
@smartherd
@smartherd 5 жыл бұрын
check source code for error
@mahaarjun9640
@mahaarjun9640 5 жыл бұрын
Anyways thank you for replying. Invalidate caches/restart helped me! . A good and nice tutorial thank you for this job.
@wanasaaaaaa
@wanasaaaaaa 4 жыл бұрын
@@mahaarjun9640 السلام عليكم أختي مها .. أنا برضو عندي نفس المشكلة تبعك وياليت لو عرفتي الحل تفيديني وشكرا
What Are APIs? - Simply Explained
6:49
Simply Explained
Рет қаралды 876 М.
Can A Seed Grow In Your Nose? 🤔
00:33
Zack D. Films
Рет қаралды 24 МЛН
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 17 МЛН
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 36 МЛН
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 39 МЛН
WebRTC in 100 Seconds // Build a Video Chat app from Scratch
11:19
Beginning Flutter - Intermediate - Using Common Widgets
4:44
JediPixels
Рет қаралды 76 М.
Fundamentals of Compose Layouts and Modifiers - MAD Skills
11:56
Android Developers
Рет қаралды 88 М.
Flutter Basic Training - 12 Minute Bootcamp
12:09
Fireship
Рет қаралды 866 М.
Can A Seed Grow In Your Nose? 🤔
00:33
Zack D. Films
Рет қаралды 24 МЛН