Flutter

กูเกิลประกาศออก Flutter 2.0 และ Dart 2.12 ซึ่งถือเป็นการอัพเกรดครั้งใหญ่ของโลก Flutter

ปัจจุบัน Flutter รองรับการเขียนแอพเนทีฟบน 5 ระบบปฏิบัติการคือ Android, iOS, macOS, Linux, Windows บวกด้วยการเขียนเว็บอีก 1 แพลตฟอร์ม

นอกจาก 6 แพลตฟอร์มข้างต้นแล้ว กูเกิลยังประกาศความร่วมมือกับ Toyota ที่จะนำ Flutter ไปใช้ในระบบ infotainment ของรถยนต์ด้วย แต่ก็ยังไม่มีรายละเอียดมากนักในตอนนี้

ของใหม่ที่สำคัญที่สุดของ Flutter 2.0 คือรองรับการเขียนเว็บแอพเต็มรูปแบบ (ก่อนหน้านี้เป็น Beta ตอนนี้คือ Stable) โดยระบบ Flutter จะมองเว็บเป็น device target อีกตัวหนึ่ง เหมือนกับการตั้ง target ของระบบปฏิบัติการอื่นๆ

ฟีเจอร์สำคัญของ Flutter Web ในเวอร์ชัน 2.0 ได้แก่

  • รองรับ Progressive web apps (PWAs)
  • รองรับ Single page apps (SPAs) เว็บแบบหน้าเดียว โหลดครั้งเดียว
  • สามารถพอร์ตแอพ Flutter เวอร์ชันมือถือไปเป็นเว็บแอพได้ทันที ใช้โค้ดเดียวกันได้เลย

นอกจากฟีเจอร์หลัก 3 อย่างแล้ว ยังมีเอนจินเรนเดอร์เว็บตัวใหม่ที่เขียนด้วยเทคโนโลยี CanvasKit และ WebAssembly ให้มีประสิทธิภาพมากขึ้น, รองรับ text autofill, เพิ่มการควบคุม URL ใน adress bar ของเบราว์เซอร์ เป็นต้น

ฝั่งของ Flutter Desktop ตอนนี้สถานะเป็น Stable แบบ Early Access ก่อนออกรุ่น Stable ภายในปีนี้ ของใหม่คือปรับปรุง text selection, context menu, ปรับปรุงการทำงานของ scrollbar และเพิ่ม grab handle ตัวลากลิสต์สลับไปมาใน ReorderableListView

ภาษา Dart 2.12 ยังมีฟีเจอร์ใหม่ที่สำคัญคือ Sound Null Safety ซึ่งเป็นการแยกชนิดของตัวแปรแบบ nullable และ non-nullable ออกจากกัน เพื่อให้โปรแกรมเมอร์ป้องกันแครชแบบ null error ได้ (การตรวจสอบ null อยู่ที่ระดับของตัวแปรเลย ดักเจอตั้งแต่ตอนเขียน)

กูเกิลบอกว่าตอนนี้ Flutter ออกมาได้ 6 แพลตฟอร์มแล้ว รองรับอุปกรณ์จอเล็กไปจนถึงจอใหญ่ มีอินพุตหลายแบบ ทั้งทัช คีย์บอร์ด เมาส์ และมีมุมมองการใช้งานแอพต่างกัน (เว็บ มือถือ เดสก์ท็อป) นักพัฒนาอาจสับสนว่าต้องเขียนแอพอย่างไรให้รองรับทุกอย่างได้ครบ จึงได้ออกแอพตัวอย่างชื่อ Flutter Folio มาให้ดูกันเป็นแนวทาง

ที่มา - Flutter 2.0, Google Developer

Hiring! บริษัทที่น่าสนใจ

Carmen Software company cover
Carmen Software
Hotel Financial Solutions
Next Innovation (Thailand) Co., Ltd. company cover
Next Innovation (Thailand) Co., Ltd.
We are web design with consulting & engineering services driven the future stronger and flexibility.
KKP Dime company cover
KKP Dime
KKP Dime บริษัทในเครือเกียรตินาคินภัทร
Kiatnakin Phatra Financial Group company cover
Kiatnakin Phatra Financial Group
Financial Service
Fastwork Technologies company cover
Fastwork Technologies
Fastwork.co เว็บไซต์ที่รวบรวม ฟรีแลนซ์ มืออาชีพจากหลากหลายสายงานไว้ในที่เดียวกัน
Thoughtworks Thailand company cover
Thoughtworks Thailand
Thoughtworks เป็นบริษัทที่ปรึกษาด้านเทคโนโยลีระดับโลกที่คว้า Great Place to Work 3 ปีซ้อน
Iron Software company cover
Iron Software
Iron Software is an American company providing a suite of .NET libraries by engineer for engineers.
CLEVERSE company cover
CLEVERSE
Cleverse is a Venture Builder. Our team builds several tech companies.
Nipa Cloud company cover
Nipa Cloud
#1 OpenStack cloud provider in Thailand with our own data center and software platform.
Bangmod Enterprise company cover
Bangmod Enterprise
The leader in Cloud Server and Hosting in Thailand.
CIMB THAI Bank company cover
CIMB THAI Bank
MOVING FORWARD WITH YOU - CIMB is the leading ASEAN Bank
Bangkok Bank company cover
Bangkok Bank
Bangkok Bank is one of Southeast Asia's largest regional banks, a market leader in business banking
MuvMi (Urban Mobility Tech Co.,Ltd.) company cover
MuvMi (Urban Mobility Tech Co.,Ltd.)
Shape the future of urban mobility towards affordable, clean, and safe solutions
T.N. Digital Solution Co., Ltd. company cover
T.N. Digital Solution Co., Ltd.
TNDS has been involving in every first move of banking’s major digital transformation.
KBTG - KASIKORN Business-Technology Group company cover
KBTG - KASIKORN Business-Technology Group
KBTG - "The Technology Company for Digital Business Innovation"
Siam Commercial Bank Public Company Limited company cover
Siam Commercial Bank Public Company Limited
"Let's start a brighter career future together"
Icon Framework co.,Ltd. company cover
Icon Framework co.,Ltd.
Global Standard Platform for Real Estate แพลตฟอร์มสำหรับธุรกิจอสังหาริมทรัพย์ครบวงจร มาตรฐานระดับโลก
REFINITIV company cover
REFINITIV
The Financial and Risk business of Thomson Reuters is now Refinitiv
H LAB company cover
H LAB
Re-engineering healthcare systems through intelligent platforms and system design.
The Gang Technology Co., Ltd. company cover
The Gang Technology Co., Ltd.
We're a Digital Agency that helps our customers transform their business into digital with ease.
LTMH company cover
LTMH
LTMH มุ่งเน้นการพัฒนาผลิตภัณฑ์ที่สามารถช่วยพันธมิตรของเราให้บรรลุเป้าหมาย
Seven Peaks company cover
Seven Peaks
We Drive Digital Transformation
Wisesight (Thailand) Co., Ltd. company cover
Wisesight (Thailand) Co., Ltd.
The Best Choice For Handling Social Media · High Expertise in Social Data · Most Advanced and Secure
MOLOG Tech company cover
MOLOG Tech
We are Modern Logistic Platform, Specialize in WMS, OMS and TMS.
Data Wow Co.,Ltd company cover
Data Wow Co.,Ltd
We enable our clients to realize increased productivity by solving their most complex issues by Data
LINE Company Thailand company cover
LINE Company Thailand
LINE, the world's hottest mobile messaging platform, offers free text and voice messaging + Call
LINE MAN Wongnai company cover
LINE MAN Wongnai
Join our journey to becoming No.1 food platform in Thailand

ส่วนตัวชอบความอิสระก็เลือก React เขียนเว็บก็ React.js หรือ Next.js เขียน app ก็ React Native ทุกอย่างอยู่บนพื้นฐาน html, css , javascript เรื่อง performance ยังไม่เห็นการรีวิวที่ต่างกันชัดเจนราวฟ้ากับเหว community react ก็ใหญ่ พลักดันโดย Facebook

เอาแค่ list ยาวๆ ที่เป็น custom component มีรูป มี text ข้างใน react native ก็พร้อมจะกระตุกแล้ว ไหนจะเรื่อง navigation ที่ Flutter ทำได้ดีมาก อีกอย่างคือคุณามารถโยกโค้ดจากแอปไปแปลงเป็นเว็บ โดยแทบไม่ต้องแก้โค้ดเลย ในขณะที่ react native ทำแบบนั้นไม่ได้

community react ใหญ่จริง ดีจริง แต่ดีแค่ตัวเว็บ ตัว react ธรรมดา ไม่ใช่ react native สำหรับเขียนแอป

อันนี้ไม่ถูกทั้งหมดนะ และไม่เห็นข้อเปรียบเทียบที่เป็นหลักฐานชัดเจน และ อยู่ที่การเขียน code ของบุคคลนั้นนะครับว่าเอาเทคโนโลยีไปใช้พัฒนาแบบไหน เท่าที่ดู app อย่าง facebook ก็ไม่กระตุกนะครับ https://reactnative.dev/showcase

ไม่เห็นข้อเปรียบเทียบที่เป็นหลักฐานชัดเจน? ไม่ทราบว่าเคยเขียนแอปด้วย react native แล้วเอาลง store จริงๆ ใช่ไหมครับ

ผมตอบไปแล้วว่าคุณเอาเทคโนโลยีไปใช้ มันก็ขึ้นอยู่กับคุณว่าคุณพัฒนามันได้ดีแค่ไหน ผมเลยยกตัวอย่าง app อย่าง facebook ไง ข้อเปรียบเทียบที่เป็นหลักฐานชัดเจน ผมหมายถึงคุณมีแหล่งอ้างอิงไหมว่ามันไม่ดี ไม่ใช้มาบอกว่าเคยเขียน app ไหมอันนั้นมันอยู่ที่ความสามารถของบุคคลนั้น

create เป็น typescript หรือ js ได้ครับเลือกได้ว่าจะสร้างแบบไหน npx react-native init MyApp --template react-native-template-typescript ส่วน scss เป็นหลักการการเขียน css อีกแบบหนึ่งมาช่วยให้การเขียน css มีโครงสร้างที่ดูง่ายขึ้นและเป็นระเบียบเท่านั้น ไม่จำเป็นต้องเป็นไฟล์ scss var styles = {
myClass: {
color: "blue"
},
myOtherClass: {
color: "red"
}
};

ใช้ครับถูกต้องครับมีครับที่เป็นคำสั่งใน scss แต่สุดท้ายเราจะได้ css และหลักการของ scss จะมองเป็น ฟังก์ชั่น เราสามารถใช้ Loop, if else หรือ เก็บค่าต่างๆไว้ในตัวแปร แล้วนำมาคำนวนค่า เพื่อความสะดวกรวดเร็วในการใช้งาน สุดท้าย javascript ทำได้หมด ในหลักการพวกนี้ครับ

ได้ครับ ผม initial บ่อย ๆ ลง node-sass + ts + custom webpack นิดหน่อย ถ้าให้ดีลง eslint + stylelint ด้วยจะดีมาก แต่กว่าจะ initial ให้ perfect ก็ปวดตับเอาเรื่อง