Print
Details: Category: บทความ Flutter | Published: 29 December 2019 | Hits: 3658

มาดู เทคนิคการ Set Font Google บน Flutter กันครับ

Screen Shot 2562 12 15 at 041829

ไปที่นี่ก่อนครับ https://pub.dev/packages/google_fonts

Screen Shot 2562 12 15 at 042140

เหมือนเดิมเพิ่ม โค้ดนี่เข้าไปใน pubspace.yaml

 Screen Shot 2562 12 15 at 042150

ต่อไป ไปหา Fonts สวยๆที่ https://fonts.google.com แค่จำชื่อก็พอ ไม่ต้องโหลดอะไร ?

Screen Shot 2562 12 15 at 042157

มาสเตอร์ ปิ้ง font นี่ครับ Mali

Screen Shot 2562 12 15 at 042213

การใช้งาน ง่ายมากแค่ ตรง style ให้ Call Object ของ GoogleFonts และ เรียกชื่อ font ของ Google ที่ต้องการใช้

Screen Shot 2562 12 15 at 042241

มาดุผลของการทำสอบครับ ไม่ยากนะ แต่ถ้าทำไม่ได้ ลองมาเรียนเขียนโค้ด Flutter กับ มาสเตอร์​ ตัวต่อตัว 

ดูเพิ่มเติมที่

https://www.androidthai.in.th/private-project-android-flutter-course.html