Print
Details: Category: บทความ Flutter | Published: 11 December 2020 | Hits: 4400

ถ้าเอา Flutter เชื่อมต่อ Server ที่ใช้ ฐานข้อมูล ms SQL อาจเจอ Error แบบนี้

Screen Shot 2563 12 11 at 081922

แก้อย่างไร ? ตามมาเลยครับ

Screen Shot 2563 12 02 at 083856

 เร่ิมจากไปที่ main.dart

Screen Shot 2563 12 02 at 084314

 สร้าง คลาส MyHttpOverrided ที่สืบทอดจาก HttpOverrides แบบนี่ครับ และ กำหนดให้ เมธอด main เป็น เทรด แบบนี่ครับ

Screen Shot 2563 12 02 at 084400

 ใน เทรด main ให้ Call MyHttpOverride แบบนี่ ครับ ก่อน runApp แค่นี่ก็ ผ่าน Certification ละ