اذهب إلى المحتوى

لوحة المتصدرين

  1. Hassan Hedr

    Hassan Hedr

    الأعضاء


    • نقاط

      3

    • المساهمات

      2851


  2. Wael Aljamal

    Wael Aljamal

    الأعضاء


    • نقاط

      3

    • المساهمات

      6975


  3. Mohammed Hhhh

    Mohammed Hhhh

    الأعضاء


    • نقاط

      3

    • المساهمات

      219


  4. وليد الجمل

    وليد الجمل

    الأعضاء


    • نقاط

      3

    • المساهمات

      14


المحتوى الأكثر حصولًا على سمعة جيدة

المحتوى الأعلى تقييمًا في 05/12/22 في كل الموقع

  1. كما تعلمت مسبقاً نتجنب استخدام نفس المعرف id لأكثر من عنصر في صفحة الويب لأنه يجب أن يكون فريد من نوعه. (هو شيء من أساسيات HTML لايعطي خطأ لكن كما مشكلتك لا يعمل بشكل سليم) يمكنك استخدام معرفين مختلفين و تمرير المعرف ضمن الدالة onchange="imageToBase64(this),image(event,'1');" , الدالة: function image (event, id) { var image = document.getElementById('product-img-' + id); // ^^^^^^^^^ image.src = URL.createObjectURL(event.target.files[0]); }; والتعديل في العناصر لتغيير المعرف id="product-img-1" id="product-img-2"
    2 نقاط
  2. حاول عند محاولة تغيير عنوان مصدر الصورة src للوسم img أن تصل للوسم الخاص بالحقل input عن طريق أبناءه وليس عن طريق البحث عن المعرف product-img، عدل التابع image ليكون كالتالي: function image (event) { var image = $(event.target).children('img#product-img'); image.src = URL.createObjectURL(event.target.files[0]); };
    2 نقاط
  3. الإصدار 1.0.0

    62937 تنزيل

    لا يخفى على أي متعلم لمجال علوم الحاسوب كثرة الاهتمام بمجال الذكاء الاصطناعي وتعلم الآلة، وكذلك الأمر بالنسبة لمستخدم التقنية العادي الذي بات يرى تطورًا كبيرًا في الآلات والتقنيات التي تحيط به بدءًا من المساعد الصوتي الآلي في جواله وحتى سيارته وبقية الأشياء الذكية المحيطة به. تتوالى الاختراعات والاكتشافات يومًا بعد يوم وتتنافس كبرى الشركات حول من يحرز أكبر تقدم ليخطف الأضواء من غيره. ونظرًا لهذا الاهتمام، ولضعف المحتوى العربي وسطحيته في هذا المجال أيضًا، قررنا توفير مصدر عربي دسم لشرح مجال الذكاء الاصطناعي وتعلم الآلة نظريًا وعمليًا لذا وضعنا فهرس المحتوى آنذاك وبدأنا العمل. هذا الكتاب هو الجزء الأول النظري التأسيسي من أصل جزآن عن الذكاء الاصطناعي وتعلم الآلة، ويبدأ بعرض أهمية الذكاء الاصطناعي وتعلم الآلة عبر الإشارة إلى المشاريع والإنجازات التي قدَّمها هذا المجال إلى البشرية حتى يومنا هذا وكيف أثرت على كل مجالات حياتنا اليومية. ينتقل بعدها إلى لمحة تاريخية عن المجال وكيفية ولادته ومراحل حياته حتى يومنا الحالي. ستجد بعدئذٍ المعلومات الدسمة في الفصل الثالث الذي يشرح المصطلحات المتعلقة بمجال تعلم الآلة ويشرح أساليب تعليم الإنسان للآلة والأسس التي بنيت عليها عمليات تعليم الآلة (منها شرح طرائق تعلم الآلة التقليدية ثم التجميع والتعلم المعزز وحتى الشبكات العصبية والتعلم العميق). يعرض الفصل الأخير تحديات عملية تعليم الآلة وما علاقة البيانات فيها، ثم أخيرًا عرض خارطة طريق لأهم المفاهيم التي يجب أن تتقنها في حال أردت التوسع في المجال وإتقانه. بعد الانتهاء من الجزء الأول في هذا الكتاب وتأسيس المفاهيم والمصطلحات التي يقوم عليها مجال الذكاء الاصطناعي وتعلم الآلة، يمكنك الانتقال إلى الجزء الثاني وهو كتاب عشرة مشاريع عملية عن الذكاء الاصطناعي لبدء تطبيق مشاريع عملية تطبيقية مبنية على بيانات واقعية وتنفيذ أفكار مشاريع من الحياة العملية باستخدام الذكاء الاصطناعي. ساهم بالعمل على هذا الكتاب، محمد لحلح تأليفًا، وجميل بيلوني تحريرًا وإشرافًا، وأخرجه فنيًا فرج الشامي. أرجو أن نكون قد وُفقنَا في هذا العمل لسد ثغرةً كبيرةً في المحتوى العربي -كما خططنا لذلك- الذي يفتقر أشد الافتقار إلى محتوى جيد ورصين في مجال الذكاء الاصطناعي وتعلم الآلة. هذا الكتاب مرخص بموجب رخصة المشاع الإبداعي Creative Commons «نسب المُصنَّف - غير تجاري - الترخيص بالمثل 4.0». يمكنك قراءة فصول الكتاب على شكل مقالات من هذه الصفحة، «الذكاء الاصطناعي: أهم الإنجازات والاختراعات وكيف أثرت في حياتنا اليومية»، أو من مباشرةً من الآتي: الفصل الأول: الذكاء الاصطناعي: أهم الإنجازات والاختراعات وكيف أثرت في حياتنا اليومية الفصل الثاني: الذكاء الاصطناعي: مراحل البدء والتطور والأسس التي نشأ عليها الفصل الثالث: المفاهيم الأساسية لتعلم الآلة الفصل الرابع: تعلم الآلة: التحديات الرئيسية وكيفية التوسع في المجال
    1 نقطة
  4. الإصدار 1.0.0

    20390 تنزيل

    رافقت زيادة استخدام شبكة الإنترنت زيادةً كبيرةً في عدد الحواسيب التي تعمل مخدماتٍ لمختلف الخدمات الشائعة، كمواقع الويب والبريد الإلكتروني والمراسلة الفورية وخواديم الملفات وخلافه؛ وقد أثبت لينُكس تفوقه في مجال الخواديم، وخصوصًا بعد الانتشار الواسع لتوزيعة أوبنتو الخاصة بالخواديم؛ الذي يُعنى هذا الدليل بشرح طرق تثبيت وضبط مختلف خدماتها. آمل أن يكون هذا الكتاب إضافةً مفيدةً للمكتبة العربية؛ وأن يفيد القارئ العربي في تعلم إدارة أشهر نظام لتشغيل الخواديم. والله وليُّ التوفيق.
    1 نقطة
  5. إن كنت نشرت موقعك الإلكتروني وأصبح متاحًا للجميع، فهل أنت على ثقة بأن كل شيء يجري على ما يرام؟ سنناقش في هذا المقال عدة خطوات قد تتبعها لتتأكد من عمل موقعك، وبعض الإجراءات التي يمكن اتخاذها لتلافي بعض المشاكل التي تظهر. يملك خادم الويب البعيد سلوكًا قد يختلف أحيانًا عن سلوك الخادم المحلي الذي اختبرت عليه موقعك، لهذا من الأفضل اختبار الموقع عند نشره على الويب مباشرةً، وقد تفاجئك كمية المشاكل التي قد تظهر مثل الصور الغير معروضة أو الصفحات الغير محمَّلة أو التي تعاني بطأً في التحميل وغيرها، لكنك ستجد لحسن الحظ أنّ معظم هذه المشاكل ليست بتلك الخطورة، وإنما هي أخطاء بسيطة أو بعض الإشكالات في إعدادات الخادم الذي يستضيف الموقع. سنطّلع إذًا في مقالنا على الطريقة التي نُشخِّص بها المشاكل التي تعترض موقع الويب إبان نشره وآلية معالجتها، وإليك بعض الاختبارات البسيطة التي لابد من إجرائها فور نشر موقعك على الويب. اختبر الموقع على متصفحك لا بدّ من تشغيل موقعك الإلكتروني من خلال متصفحك فور نشره على الويب كي تتفحص عمله وتتأكد من سير كل شيء كما هو متوقع له. صورة مفقودة لنلق نظرةً على هذه الصفحة الاختبارية من موزيلّا، حيث ستلاحظ عدم وجود صورة يونيكورن unicorn. لنلق نظرةً على الأداة "شبكة الاتصال Network" والتي نصل إليها من خلال: أدوات Tools> أدوات مطوري ويب Web Developers> شبكة الاتصال Network. سنجد أنّ المشكلة في الخطأ "404" والذي يشير إلى أنّ المورد المطلوب غير موجود، وبالتالي لن يعرِض المتصفح الصورة. حالات HTTP يستجيب الخادم برسالة توضِّح حالة الطلب في كل مرة يتلقى طلبًا، وإليك أكثر الرسائل شيوعًا: 200 (موجود OK): المورد الذي تطلبه قد أرسل إليك بنجاح. 301 (نُقل نهائيًا Moved Permanently): بمعنى أنه قد نُقل المورد إلى مكان آخر، ولن يعرِض متصفحك هذه الرسالة كثيرًا، لكن من المفيد الاطلاع على فحواها، وذلك لأنّ محركات البحث تستخدمها بكثرة من أجل تحديث فهارسها. 304 (لم يتغير Not modified): لم تطرأ أية تعديلات على المورد منذ آخر مرة طلبته فيها، وبالتالي سيتمكن المتصفح من عرض النسخة التي يحتفظ بها في ذاكرته المؤقتة cache، مما يزيد من سرعة الاستجابة وفعالية استخدام نطاق حزمة التراسل المخصصة. 403 (ممنوع Forbidden): لا يُسمح لك بالوصول إلى المَورد، وعادةً ما يكون السبب خطأً في الإعدادات، إذ يغفل المضيف عن إعطائك أذونات الوصول إلى المَورد على سبيل المثال. 404 (غير موجود Not found): تشرح الحالة نفسها بنفسها وسنناقش حلها لاحقًا. 500 (خطأ داخلي في الخادم Internal Server Error): قد تتوقف أحد لغات البرمجة التي تعمل على الخادم مثل PHP أو Net. عن العمل عندما تحدث مشكلة في الخادم، كما قد يعاني خادم ويب من أخطاء في الإعدادات، وبالتالي عليك العودة في هذه الحالة إلى فريق العمل الذي يُشرف على الاستضافة. 503 (الخدمة غير متوفرة Service unavailable): ينتج هذا الخطأ عادةً عن زيادة حمولة مؤقتة على النظام أو حدوث خطأ على الخادم، وبالتالي عليك التجريب مجددًا بعد فترة. سيواجه المبتدئون الذين يتحققون من مواقعهم البسيطة الحالات 200 و304 و403 و404 غالبًا. حل المشكلة 404 ما الخطأ الذي حدث؟ تبدو الصورة التي نبحث عنها في مكانها للوهلة الأولى، لكن مع ذلك يعيد الخادم الخطأ 404، فإذا دققنا الآن في شيفرة HTML، فسنلاحظ الخطأ المطبعي الذي ارتكبناه في كتابة اسم الصورة unicorn_pics.png بدلًا من unicorn_pic.png، لذا صحِّح الخطأ ضمن السمة src لوسم الصورة لتحل المشكلة. احفظ التغييرات وادفع بالملف المصحَّح إلى الخادم، ثم حمِّل الصفحة من جديد على متصفحك: لنلق نظرةً مجددًا على حالتَي HTTP المعروضتين أسفل الصورة السابقة: 200: الموافقة لطلبَي الإحضار / وunicorn_pic.png، وهذا يعني أننا نجحنا في إعادة تحميل الصفحة وفي عرض الصورة. 304: الموافقة لطلب إحضار الملف basic.css، وتعني عدم تغيّر الملف منذ آخر مرة طُلِب فيها، وبالتالي يمكن للمتصفح استخدام النسخة المحفوظة منه ضمن ذاكرته المؤقتة عوض تلقي نسخة جديدة وهكذا نكون قد أوجدنا حلًا لمشكلتنا وتعلمنا في الوقت نفسه شيئًا مفيدًا عن بعض حالات HTTP. أخطاء تحدث باستمرار إليك أكثر الأخطاء التي نواجهها تكرارًا: أخطاء مطبعية في العناوين إذا أردنا مثلًا كتابة العنوان Http://academy.hsoub.com ونسينا كتابة الحرف "u" بسبب السرعة، فلن يتمكن المتصفح من إيجاد العنوان. الخطأ 404 قد ينتج الخطأ أحيانًا عن خطأ مطبعي، لكنه ينتج في أحيان أخرى عن نسيان رفع المورد إلى الخادم أو عن فقدان الاتصال أثناء رفعه، لذا تحقق من كتابة وصحة مسار الملف، وارفع الملفات مجددًا إذا استمرت المشكلة، إذ ستحل هذه الإجراءات البسيطة المشكلة غالبًا. أخطاء جافاسكربت أضاف أحد ما -أنت مثلًا- سكربت إلى صفحة ويب وارتكب خطأً، إذ لن يمنع ذلك الخطأ تحميل الصفحة، لكنك ستدرك وجود خطب ما. تعرض لك الصورة السابقة الخطأ الذي ارتكبته بدقة، وبالتالي سيسهل علينا إصلاحه. أمور إضافية ينبغي التحقق منها لقد زودناك ببعض الوسائل البسيطة التي ستساعدك في التحقق من صحة عمل موقعك والأخطاء التي تقع باستمرار وكيفية التعامل معها، كما يمكنك التأكد من تحقيق صفحتك للمعايير التالية: أداء الصفحة هل تُحمّل الصفحة بسرعة كافية؟ قد تساعدك بعض الموارد مثل WebPageTest.org أو بعض إضافات المتصفح مثل YSlow في فهم بعض أمور مهمة مثل هذه. لاحظ كيف تصنِّف YSlow الصفحات من الدرجة A حتى F، فقد حققت الصفحة البسيطة في مثالنا معظم معايير الأداء، لذلك صنفت على أنها من الدرجة A مع ملاحظة ضرورة استخدام شبكة تسليم محتوى Content Deleivery Ntework -أو CDN اختصارًا-، كما لن يكون استخدامها أمرًا ملحًا في صفحتنا التي تعرض صورةً واحدةً، وإنما عندما يقدِّم موقع الويب آلاف الصور ويعاني من زيادة مستمرة في عرض حزمة الاستهلاك. استجابة الخادم يمكن استخدام الأداة ping الموجودة في مفسِّرات الأوامر في اختبار اسم النطاق والتأكد من استجابة الخادم الذي يستضيفه: $ ping mozilla.org PING mozilla.org (63.245.215.20): 56 data bytes 64 bytes from 63.245.215.20: icmp_seq=0 ttl=44 time=148.741 ms 64 bytes from 63.245.215.20: icmp_seq=1 ttl=44 time=148.541 ms 64 bytes from 63.245.215.20: icmp_seq=2 ttl=44 time=148.734 ms 64 bytes from 63.245.215.20: icmp_seq=3 ttl=44 time=147.857 ms ^C --- mozilla.org ping statistics --- 4 packets transmitted, 4 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 147.857/148.468/148.741/0.362 ms انتبه إلى إمكانية استخدام الاختصار Ctrl+C من خلال لوحة المفاتيح في مقاطعة عمل الأداة عندما تحصل على المعلومات التي تريد، إذ ستعمل الأداة إلى ما لانهاية إذا لم توقفها. قائمة تحقق بسيطة تحقق من الأخطاء التي تحمل الرقم 404. تحقق من عمل كل صفحات موقعك كما هو مطلوب. استعرض موقعك ضمن عدة متصفحات لتتأكد من تصييره بالصورة الصحيحة. لقد رفعت موقعك وأصبح جاهزًا ليستقبل الزوار، إذ أنجزت خطوةً متقدمةً وعليك الآن التعمق في تفاصيل أكثر. قد يزور موقعك أشخاص من مختلف أرجاء العالم، لذلك عليك التفكير في جعله متاحًا للجميع. هل تعتقد أنّ موقعك يحتاج إلى المزيد من الصقل؟ إذًا عليك تعلم المزيد حول لغة أوراق الأنماط المتتالية CSS. ترجمة -وبتصرف- للمقال ?How do you make sure your website works properly. اقرأ أيضًا كيف تنشر صفحة أو موقع ويب قمت بتصميمه على الإنترنت الفرق بين صفحة الويب وموقع الويب وخادم الويب ومحرك البحث كيفية التعامل مع الويب المدخل الشامل لتعلم تطوير الويب
    1 نقطة
  6. قمت بتخزين الرمز ضمن sharedPreferences ولا أعرف كيفية تمريرها ضمن الطلب للسيرفر import 'package:flutter/material.dart'; import 'package:http/http.dart' as http; import 'dart:convert'; import 'package:shared_preferences/shared_preferences.dart'; class FetchData { final String url; FetchData(this.url); Future getdata() async { http.Response response = await http.get( Uri.parse(url), ); if (response.statusCode == 200) { String data = response.body; return jsonDecode(data); } else { print(response.body); } } }
    1 نقطة
  7. رسالة الخطأ Launching lib\main.dart on Edge in debug mode... /C:/src/flutter/packages/flutter/lib/material.dart:156:1: Error: Error when reading '/C:/src/flutter/packages/flutter/lib/src/material/toggle_buttons.dart': The system cannot find the file specified. export 'src/material/toggle_buttons.dart'; ^ /C:/src/flutter/packages/flutter/lib/material.dart:157:1: Error: Error when reading '/C:/src/flutter/packages/flutter/lib/src/material/toggle_buttons_theme.dart': The system cannot find the file specified. export 'src/material/toggle_buttons_theme.dart'; ^ /C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart:48:8: Error: Error when reading '/C:/src/flutter/packages/flutter/lib/src/material/toggle_buttons_theme.dart': The system cannot find the file specified. import 'toggle_buttons_theme.dart'; ^ /C:/src/flutter/packages/flutter/lib/material.dart:158:1: Error: Error when reading '/C:/src/flutter/packages/flutter/lib/src/material/toggleable.dart': The system cannot find the file specified. export 'src/material/toggleable.dart'; ^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:12:8: Error: Error when reading '/C:/src/flutter/packages/flutter/lib/src/material/toggleable.dart': The system cannot find the file specified. import 'toggleable.dart'; ^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:12:8: Error: Error when reading '/C:/src/flutter/packages/flutter/lib/src/material/toggleable.dart': The system cannot find the file specified. import 'toggleable.dart'; ^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:17:8: Error: Error when reading '/C:/src/flutter/packages/flutter/lib/src/material/toggleable.dart': The system cannot find the file specified. import 'toggleable.dart'; ^ /C:/src/flutter/packages/flutter/lib/material.dart:159:1: Error: Error when reading '/C:/src/flutter/packages/flutter/lib/src/material/tooltip.dart': The system cannot find the file specified. export 'src/material/tooltip.dart'; ^ /C:/src/flutter/packages/flutter/lib/src/material/app.dart:20:8: Error: Error when reading '/C:/src/flutter/packages/flutter/lib/src/material/tooltip.dart': The system cannot find the file specified. import 'tooltip.dart'; ^ /C:/src/flutter/packages/flutter/lib/src/material/bottom_navigation_bar.dart:18:8: Error: Error when reading '/C:/src/flutter/packages/flutter/lib/src/material/tooltip.dart': The system cannot find the file specified. import 'tooltip.dart'; ^ /C:/src/flutter/packages/flutter/lib/src/material/chip.dart:22:8: Error: Error when reading '/C:/src/flutter/packages/flutter/lib/src/material/tooltip.dart': The system cannot find the file specified. import 'tooltip.dart'; ^ /C:/src/flutter/packages/flutter/lib/src/material/data_table.dart:22:8: Error: Error when reading '/C:/src/flutter/packages/flutter/lib/src/material/tooltip.dart': The system cannot find the file specified. import 'tooltip.dart'; ^ /C:/src/flutter/packages/flutter/lib/src/material/floating_action_button.dart:16:8: Error: Error when reading '/C:/src/flutter/packages/flutter/lib/src/material/tooltip.dart': The system cannot find the file specified. import 'tooltip.dart'; ^ /C:/src/flutter/packages/flutter/lib/src/material/icon_button.dart:18:8: Error: Error when reading '/C:/src/flutter/packages/flutter/lib/src/material/tooltip.dart': The system cannot find the file specified. import 'tooltip.dart'; ^ /C:/src/flutter/packages/flutter/lib/src/material/navigation_bar.dart:16:8: Error: Error when reading '/C:/src/flutter/packages/flutter/lib/src/material/tooltip.dart': The system cannot find the file specified. import 'tooltip.dart'; ^ /C:/src/flutter/packages/flutter/lib/src/material/popup_menu.dart:21:8: Error: Error when reading '/C:/src/flutter/packages/flutter/lib/src/material/tooltip.dart': The system cannot find the file specified. import 'tooltip.dart'; ^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:316:77: Error: Type 'ToggleableStateMixin' not found. class _CheckboxState extends State<Checkbox> with TickerProviderStateMixin, ToggleableStateMixin { ^^^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:486:32: Error: Type 'ToggleablePainter' not found. class _CheckboxPainter extends ToggleablePainter { ^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:289:77: Error: Type 'ToggleableStateMixin' not found. class _RadioState<T> extends State<Radio<T>> with TickerProviderStateMixin, ToggleableStateMixin { ^^^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:440:29: Error: Type 'ToggleablePainter' not found. class _RadioPainter extends ToggleablePainter { ^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:509:90: Error: Type 'ToggleableStateMixin' not found. class _MaterialSwitchState extends State<_MaterialSwitch> with TickerProviderStateMixin, ToggleableStateMixin { ^^^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:751:30: Error: Type 'ToggleablePainter' not found. class _SwitchPainter extends ToggleablePainter { ^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart:322:5: Error: Type 'ToggleButtonsThemeData' not found. ToggleButtonsThemeData? toggleButtonsTheme, ^^^^^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart:1401:9: Error: Type 'ToggleButtonsThemeData' not found. final ToggleButtonsThemeData toggleButtonsTheme; ^^^^^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart:1631:5: Error: Type 'ToggleButtonsThemeData' not found. ToggleButtonsThemeData? toggleButtonsTheme, ^^^^^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:316:7: Error: The type 'ToggleableStateMixin' can't be mixed in. class _CheckboxState extends State<Checkbox> with TickerProviderStateMixin, ToggleableStateMixin { ^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:289:7: Error: The type 'ToggleableStateMixin' can't be mixed in. class _RadioState<T> extends State<Radio<T>> with TickerProviderStateMixin, ToggleableStateMixin { ^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:509:7: Error: The type 'ToggleableStateMixin' can't be mixed in. class _MaterialSwitchState extends State<_MaterialSwitch> with TickerProviderStateMixin, ToggleableStateMixin { ^ /C:/src/flutter/packages/flutter/lib/src/material/app.dart:944:16: Error: The getter 'Tooltip' isn't defined for the class '_MaterialAppState'. - '_MaterialAppState' is from 'package:flutter/src/material/app.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/app.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'Tooltip'. return Tooltip.dismissAllToolTips() ? KeyEventResult.handled : KeyEventResult.ignored; ^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/bottom_navigation_bar.dart:527:16: Error: The method 'Tooltip' isn't defined for the class '_BottomNavigationTile'. - '_BottomNavigationTile' is from 'package:flutter/src/material/bottom_navigation_bar.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/bottom_navigation_bar.dart'). Try correcting the name to the name of an existing method, or defining a method named 'Tooltip'. result = Tooltip( ^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:331:7: Error: The method 'animateToValue' isn't defined for the class '_CheckboxState'. - '_CheckboxState' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing method, or defining a method named 'animateToValue'. animateToValue(); ^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:337:14: Error: The method 'dispose' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing method, or defining a method named 'dispose'. _painter.dispose(); ^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:377:65: Error: The getter 'states' isn't defined for the class '_CheckboxState'. - '_CheckboxState' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. return MaterialStateProperty.resolveAs<BorderSide?>(side, states); ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:378:10: Error: The getter 'states' isn't defined for the class '_CheckboxState'. - '_CheckboxState' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. if (!states.contains(MaterialState.selected)) ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:412:45: Error: The getter 'states' isn't defined for the class '_CheckboxState'. - '_CheckboxState' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. final Set<MaterialState> activeStates = states..add(MaterialState.selected); ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:413:47: Error: The getter 'states' isn't defined for the class '_CheckboxState'. - '_CheckboxState' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. final Set<MaterialState> inactiveStates = states..remove(MaterialState.selected); ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:423:46: Error: The getter 'states' isn't defined for the class '_CheckboxState'. - '_CheckboxState' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. final Set<MaterialState> focusedStates = states..add(MaterialState.focused); ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:429:46: Error: The getter 'states' isn't defined for the class '_CheckboxState'. - '_CheckboxState' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. final Set<MaterialState> hoveredStates = states..add(MaterialState.hovered); ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:446:54: Error: The getter 'states' isn't defined for the class '_CheckboxState'. - '_CheckboxState' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. ?? themeData.checkboxTheme.checkColor?.resolve(states) ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:451:14: Error: The method 'buildToggleable' isn't defined for the class '_CheckboxState'. - '_CheckboxState' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing method, or defining a method named 'buildToggleable'. child: buildToggleable( ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:457:24: Error: The getter 'position' isn't defined for the class '_CheckboxState'. - '_CheckboxState' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'position'. ..position = position ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:457:13: Error: The setter 'position' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'position'. ..position = position ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:458:24: Error: The getter 'reaction' isn't defined for the class '_CheckboxState'. - '_CheckboxState' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'reaction'. ..reaction = reaction ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:458:13: Error: The setter 'reaction' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'reaction'. ..reaction = reaction ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:459:33: Error: The getter 'reactionFocusFade' isn't defined for the class '_CheckboxState'. - '_CheckboxState' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'reactionFocusFade'. ..reactionFocusFade = reactionFocusFade ^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:459:13: Error: The setter 'reactionFocusFade' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'reactionFocusFade'. ..reactionFocusFade = reactionFocusFade ^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:460:33: Error: The getter 'reactionHoverFade' isn't defined for the class '_CheckboxState'. - '_CheckboxState' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'reactionHoverFade'. ..reactionHoverFade = reactionHoverFade ^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:460:13: Error: The setter 'reactionHoverFade' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'reactionHoverFade'. ..reactionHoverFade = reactionHoverFade ^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:461:13: Error: The setter 'inactiveReactionColor' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'inactiveReactionColor'. ..inactiveReactionColor = effectiveInactivePressedOverlayColor ^^^^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:462:13: Error: The setter 'reactionColor' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'reactionColor'. ..reactionColor = effectiveActivePressedOverlayColor ^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:463:13: Error: The setter 'hoverColor' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'hoverColor'. ..hoverColor = effectiveHoverOverlayColor ^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:464:13: Error: The setter 'focusColor' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'focusColor'. ..focusColor = effectiveFocusOverlayColor ^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:465:13: Error: The setter 'splashRadius' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'splashRadius'. ..splashRadius = widget.splashRadius ?? themeData.checkboxTheme.splashRadius ?? kRadialReactionRadius ^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:466:28: Error: The getter 'downPosition' isn't defined for the class '_CheckboxState'. - '_CheckboxState' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'downPosition'. ..downPosition = downPosition ^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:466:13: Error: The setter 'downPosition' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'downPosition'. ..downPosition = downPosition ^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:467:25: Error: The getter 'states' isn't defined for the class '_CheckboxState'. - '_CheckboxState' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. ..isFocused = states.contains(MaterialState.focused) ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:467:13: Error: The setter 'isFocused' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'isFocused'. ..isFocused = states.contains(MaterialState.focused) ^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:468:25: Error: The getter 'states' isn't defined for the class '_CheckboxState'. - '_CheckboxState' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. ..isHovered = states.contains(MaterialState.hovered) ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:468:13: Error: The setter 'isHovered' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'isHovered'. ..isHovered = states.contains(MaterialState.hovered) ^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:469:13: Error: The setter 'activeColor' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'activeColor'. ..activeColor = effectiveActiveColor ^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:470:13: Error: The setter 'inactiveColor' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'inactiveColor'. ..inactiveColor = effectiveInactiveColor ^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:494:5: Error: The method 'notifyListeners' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing method, or defining a method named 'notifyListeners'. notifyListeners(); ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:504:5: Error: The method 'notifyListeners' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing method, or defining a method named 'notifyListeners'. notifyListeners(); ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:514:5: Error: The method 'notifyListeners' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing method, or defining a method named 'notifyListeners'. notifyListeners(); ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:524:5: Error: The method 'notifyListeners' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing method, or defining a method named 'notifyListeners'. notifyListeners(); ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:534:5: Error: The method 'notifyListeners' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing method, or defining a method named 'notifyListeners'. notifyListeners(); ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:552:24: Error: The getter 'activeColor' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'activeColor'. return t >= 0.25 ? activeColor : Color.lerp(inactiveColor, activeColor, t * 4.0)!; ^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:552:49: Error: The getter 'inactiveColor' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'inactiveColor'. return t >= 0.25 ? activeColor : Color.lerp(inactiveColor, activeColor, t * 4.0)!; ^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:552:64: Error: The getter 'activeColor' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'activeColor'. return t >= 0.25 ? activeColor : Color.lerp(inactiveColor, activeColor, t * 4.0)!; ^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:609:5: Error: The method 'paintRadialReaction' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing method, or defining a method named 'paintRadialReaction'. paintRadialReaction(canvas: canvas, origin: size.center(Offset.zero)); ^^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:613:36: Error: The getter 'position' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'position'. final AnimationStatus status = position.status; ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:615:9: Error: The getter 'position' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'position'. ? position.value ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:616:15: Error: The getter 'position' isn't defined for the class '_CheckboxPainter'. - '_CheckboxPainter' is from 'package:flutter/src/material/checkbox.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'position'. : 1.0 - position.value; ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/chip.dart:1800:12: Error: The method 'Tooltip' isn't defined for the class '_RawChipState'. - '_RawChipState' is from 'package:flutter/src/material/chip.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/chip.dart'). Try correcting the name to the name of an existing method, or defining a method named 'Tooltip'. return Tooltip( ^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/data_table.dart:773:15: Error: The method 'Tooltip' isn't defined for the class 'DataTable'. - 'DataTable' is from 'package:flutter/src/material/data_table.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/data_table.dart'). Try correcting the name to the name of an existing method, or defining a method named 'Tooltip'. label = Tooltip( ^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/floating_action_button.dart:630:16: Error: The method 'Tooltip' isn't defined for the class 'FloatingActionButton'. - 'FloatingActionButton' is from 'package:flutter/src/material/floating_action_button.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/floating_action_button.dart'). Try correcting the name to the name of an existing method, or defining a method named 'Tooltip'. result = Tooltip( ^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/icon_button.dart:346:16: Error: The method 'Tooltip' isn't defined for the class 'IconButton'. - 'IconButton' is from 'package:flutter/src/material/icon_button.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/icon_button.dart'). Try correcting the name to the name of an existing method, or defining a method named 'Tooltip'. result = Tooltip( ^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/navigation_bar.dart:791:12: Error: The method 'Tooltip' isn't defined for the class '_NavigationBarDestinationTooltip'. - '_NavigationBarDestinationTooltip' is from 'package:flutter/src/material/navigation_bar.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/navigation_bar.dart'). Try correcting the name to the name of an existing method, or defining a method named 'Tooltip'. return Tooltip( ^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/popup_menu.dart:1168:14: Error: The method 'Tooltip' isn't defined for the class 'PopupMenuButtonState<T>'. - 'PopupMenuButtonState' is from 'package:flutter/src/material/popup_menu.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/popup_menu.dart'). Try correcting the name to the name of an existing method, or defining a method named 'Tooltip'. return Tooltip( ^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:306:7: Error: The method 'animateToValue' isn't defined for the class '_RadioState<T>'. - '_RadioState' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing method, or defining a method named 'animateToValue'. animateToValue(); ^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:312:14: Error: The method 'dispose' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing method, or defining a method named 'dispose'. _painter.dispose(); ^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:379:45: Error: The getter 'states' isn't defined for the class '_RadioState<T>'. - '_RadioState' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. final Set<MaterialState> activeStates = states..add(MaterialState.selected); ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:380:47: Error: The getter 'states' isn't defined for the class '_RadioState<T>'. - '_RadioState' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. final Set<MaterialState> inactiveStates = states..remove(MaterialState.selected); ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:390:46: Error: The getter 'states' isn't defined for the class '_RadioState<T>'. - '_RadioState' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. final Set<MaterialState> focusedStates = states..add(MaterialState.focused); ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:396:46: Error: The getter 'states' isn't defined for the class '_RadioState<T>'. - '_RadioState' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. final Set<MaterialState> hoveredStates = states..add(MaterialState.hovered); ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:415:14: Error: The method 'buildToggleable' isn't defined for the class '_RadioState<T>'. - '_RadioState' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing method, or defining a method named 'buildToggleable'. child: buildToggleable( ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:421:24: Error: The getter 'position' isn't defined for the class '_RadioState<T>'. - '_RadioState' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'position'. ..position = position ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:421:13: Error: The setter 'position' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'position'. ..position = position ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:422:24: Error: The getter 'reaction' isn't defined for the class '_RadioState<T>'. - '_RadioState' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'reaction'. ..reaction = reaction ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:422:13: Error: The setter 'reaction' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'reaction'. ..reaction = reaction ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:423:33: Error: The getter 'reactionFocusFade' isn't defined for the class '_RadioState<T>'. - '_RadioState' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'reactionFocusFade'. ..reactionFocusFade = reactionFocusFade ^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:423:13: Error: The setter 'reactionFocusFade' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'reactionFocusFade'. ..reactionFocusFade = reactionFocusFade ^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:424:33: Error: The getter 'reactionHoverFade' isn't defined for the class '_RadioState<T>'. - '_RadioState' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'reactionHoverFade'. ..reactionHoverFade = reactionHoverFade ^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:424:13: Error: The setter 'reactionHoverFade' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'reactionHoverFade'. ..reactionHoverFade = reactionHoverFade ^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:425:13: Error: The setter 'inactiveReactionColor' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'inactiveReactionColor'. ..inactiveReactionColor = effectiveInactivePressedOverlayColor ^^^^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:426:13: Error: The setter 'reactionColor' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'reactionColor'. ..reactionColor = effectiveActivePressedOverlayColor ^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:427:13: Error: The setter 'hoverColor' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'hoverColor'. ..hoverColor = effectiveHoverOverlayColor ^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:428:13: Error: The setter 'focusColor' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'focusColor'. ..focusColor = effectiveFocusOverlayColor ^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:429:13: Error: The setter 'splashRadius' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'splashRadius'. ..splashRadius = widget.splashRadius ?? themeData.radioTheme.splashRadius ?? kRadialReactionRadius ^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:430:28: Error: The getter 'downPosition' isn't defined for the class '_RadioState<T>'. - '_RadioState' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'downPosition'. ..downPosition = downPosition ^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:430:13: Error: The setter 'downPosition' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'downPosition'. ..downPosition = downPosition ^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:431:25: Error: The getter 'states' isn't defined for the class '_RadioState<T>'. - '_RadioState' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. ..isFocused = states.contains(MaterialState.focused) ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:431:13: Error: The setter 'isFocused' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'isFocused'. ..isFocused = states.contains(MaterialState.focused) ^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:432:25: Error: The getter 'states' isn't defined for the class '_RadioState<T>'. - '_RadioState' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. ..isHovered = states.contains(MaterialState.hovered) ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:432:13: Error: The setter 'isHovered' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'isHovered'. ..isHovered = states.contains(MaterialState.hovered) ^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:433:13: Error: The setter 'activeColor' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'activeColor'. ..activeColor = effectiveActiveColor ^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:434:13: Error: The setter 'inactiveColor' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'inactiveColor'. ..inactiveColor = effectiveInactiveColor, ^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:443:5: Error: The method 'paintRadialReaction' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing method, or defining a method named 'paintRadialReaction'. paintRadialReaction(canvas: canvas, origin: size.center(Offset.zero)); ^^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:449:28: Error: The getter 'inactiveColor' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'inactiveColor'. ..color = Color.lerp(inactiveColor, activeColor, position.value)! ^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:449:43: Error: The getter 'activeColor' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'activeColor'. ..color = Color.lerp(inactiveColor, activeColor, position.value)! ^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:449:56: Error: The getter 'position' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'position'. ..color = Color.lerp(inactiveColor, activeColor, position.value)! ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:455:10: Error: The getter 'position' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'position'. if (!position.isDismissed) { ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/radio.dart:457:49: Error: The getter 'position' isn't defined for the class '_RadioPainter'. - '_RadioPainter' is from 'package:flutter/src/material/radio.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/radio.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'position'. canvas.drawCircle(center, _kInnerRadius * position.value, paint); ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:518:11: Error: The getter 'position' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'position'. if (position.value == 0.0 || position.value == 1.0) { ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:518:36: Error: The getter 'position' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'position'. if (position.value == 0.0 || position.value == 1.0) { ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:519:9: Error: The getter 'position' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'position'. position ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:523:7: Error: The method 'animateToValue' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing method, or defining a method named 'animateToValue'. animateToValue(); ^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:602:9: Error: The getter 'isInteractive' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'isInteractive'. if (isInteractive) ^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:603:7: Error: The getter 'reactionController' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'reactionController'. reactionController.forward(); ^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:607:9: Error: The getter 'isInteractive' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'isInteractive'. if (isInteractive) { ^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:608:7: Error: The getter 'position' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'position'. position ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:614:11: Error: The getter 'positionController' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'positionController'. positionController.value -= delta; ^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:617:11: Error: The getter 'positionController' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'positionController'. positionController.value += delta; ^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:626:9: Error: The getter 'position' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'position'. if (position.value >= 0.5 != widget.value) { ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:634:7: Error: The method 'animateToValue' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing method, or defining a method named 'animateToValue'. animateToValue(); ^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:636:5: Error: The getter 'reactionController' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'reactionController'. reactionController.reverse(); ^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:652:7: Error: The method 'animateToValue' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing method, or defining a method named 'animateToValue'. animateToValue(); ^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:659:45: Error: The getter 'states' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. final Set<MaterialState> activeStates = states..add(MaterialState.selected); ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:660:47: Error: The getter 'states' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. final Set<MaterialState> inactiveStates = states..remove(MaterialState.selected); ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:678:46: Error: The getter 'states' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. final Set<MaterialState> focusedStates = states..add(MaterialState.focused); ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:684:46: Error: The getter 'states' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. final Set<MaterialState> hoveredStates = states..add(MaterialState.hovered); ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:714:16: Error: The method 'buildToggleable' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing method, or defining a method named 'buildToggleable'. child: buildToggleable( ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:720:26: Error: The getter 'position' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'position'. ..position = position ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:720:15: Error: The setter 'position' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'position'. ..position = position ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:721:26: Error: The getter 'reaction' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'reaction'. ..reaction = reaction ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:721:15: Error: The setter 'reaction' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'reaction'. ..reaction = reaction ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:722:35: Error: The getter 'reactionFocusFade' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'reactionFocusFade'. ..reactionFocusFade = reactionFocusFade ^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:722:15: Error: The setter 'reactionFocusFade' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'reactionFocusFade'. ..reactionFocusFade = reactionFocusFade ^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:723:35: Error: The getter 'reactionHoverFade' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'reactionHoverFade'. ..reactionHoverFade = reactionHoverFade ^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:723:15: Error: The setter 'reactionHoverFade' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'reactionHoverFade'. ..reactionHoverFade = reactionHoverFade ^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:724:15: Error: The setter 'inactiveReactionColor' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'inactiveReactionColor'. ..inactiveReactionColor = effectiveInactivePressedOverlayColor ^^^^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:725:15: Error: The setter 'reactionColor' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'reactionColor'. ..reactionColor = effectiveActivePressedOverlayColor ^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:726:15: Error: The setter 'hoverColor' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'hoverColor'. ..hoverColor = effectiveHoverOverlayColor ^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:727:15: Error: The setter 'focusColor' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'focusColor'. ..focusColor = effectiveFocusOverlayColor ^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:728:15: Error: The setter 'splashRadius' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'splashRadius'. ..splashRadius = widget.splashRadius ?? theme.switchTheme.splashRadius ?? kRadialReactionRadius ^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:729:30: Error: The getter 'downPosition' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'downPosition'. ..downPosition = downPosition ^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:729:15: Error: The setter 'downPosition' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'downPosition'. ..downPosition = downPosition ^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:730:27: Error: The getter 'states' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. ..isFocused = states.contains(MaterialState.focused) ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:730:15: Error: The setter 'isFocused' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'isFocused'. ..isFocused = states.contains(MaterialState.focused) ^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:731:27: Error: The getter 'states' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'states'. ..isHovered = states.contains(MaterialState.hovered) ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:731:15: Error: The setter 'isHovered' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'isHovered'. ..isHovered = states.contains(MaterialState.hovered) ^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:732:15: Error: The setter 'activeColor' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'activeColor'. ..activeColor = effectiveActiveThumbColor ^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:733:15: Error: The setter 'inactiveColor' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'inactiveColor'. ..inactiveColor = effectiveInactiveThumbColor ^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:741:31: Error: The getter 'isInteractive' isn't defined for the class '_MaterialSwitchState'. - '_MaterialSwitchState' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'isInteractive'. ..isInteractive = isInteractive ^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:758:5: Error: The method 'notifyListeners' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing method, or defining a method named 'notifyListeners'. notifyListeners(); ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:768:5: Error: The method 'notifyListeners' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing method, or defining a method named 'notifyListeners'. notifyListeners(); ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:777:5: Error: The method 'notifyListeners' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing method, or defining a method named 'notifyListeners'. notifyListeners(); ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:787:5: Error: The method 'notifyListeners' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing method, or defining a method named 'notifyListeners'. notifyListeners(); ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:797:5: Error: The method 'notifyListeners' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing method, or defining a method named 'notifyListeners'. notifyListeners(); ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:807:5: Error: The method 'notifyListeners' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing method, or defining a method named 'notifyListeners'. notifyListeners(); ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:817:5: Error: The method 'notifyListeners' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing method, or defining a method named 'notifyListeners'. notifyListeners(); ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:827:5: Error: The method 'notifyListeners' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing method, or defining a method named 'notifyListeners'. notifyListeners(); ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:837:5: Error: The method 'notifyListeners' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing method, or defining a method named 'notifyListeners'. notifyListeners(); ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:847:5: Error: The method 'notifyListeners' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing method, or defining a method named 'notifyListeners'. notifyListeners(); ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:857:5: Error: The method 'notifyListeners' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing method, or defining a method named 'notifyListeners'. notifyListeners(); ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:882:7: Error: The method 'notifyListeners' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing method, or defining a method named 'notifyListeners'. notifyListeners(); ^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:888:33: Error: The getter 'position' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'position'. final double currentValue = position.value; ^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:901:47: Error: The getter 'inactiveColor' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'inactiveColor'. final Color lerpedThumbColor = Color.lerp(inactiveColor, activeColor, currentValue)!; ^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:901:62: Error: The getter 'activeColor' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'activeColor'. final Color lerpedThumbColor = Color.lerp(inactiveColor, activeColor, currentValue)!; ^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:923:5: Error: The method 'paintRadialReaction' isn't defined for the class '_SwitchPainter'. - '_SwitchPainter' is from 'package:flutter/src/material/switch.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/switch.dart'). Try correcting the name to the name of an existing method, or defining a method named 'paintRadialReaction'. paintRadialReaction(canvas: canvas, origin: radialReactionOrigin); ^^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/switch.dart:1010:11: Error: Superclass has no method named 'dispose'. super.dispose(); ^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart:322:5: Error: 'ToggleButtonsThemeData' isn't a type. ToggleButtonsThemeData? toggleButtonsTheme, ^^^^^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart:542:34: Error: Couldn't find constructor 'ToggleButtonsThemeData'. toggleButtonsTheme ??= const ToggleButtonsThemeData(); ^^^^^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart:1401:9: Error: 'ToggleButtonsThemeData' isn't a type. final ToggleButtonsThemeData toggleButtonsTheme; ^^^^^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart:1631:5: Error: 'ToggleButtonsThemeData' isn't a type. ToggleButtonsThemeData? toggleButtonsTheme, ^^^^^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart:1943:27: Error: Undefined name 'ToggleButtonsThemeData'. toggleButtonsTheme: ToggleButtonsThemeData.lerp(a.toggleButtonsTheme, b.toggleButtonsTheme, t)!, ^^^^^^^^^^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart:2234:40: Error: 'ToggleButtonsThemeData' isn't a type. properties.add(DiagnosticsProperty<ToggleButtonsThemeData>('toggleButtonsTheme', toggleButtonsTheme, level: DiagnosticLevel.debug)); ^^^^^^^^^^^^^^^^^^^^^^ Unhandled exception: NoSuchMethodError: The getter 'name' was called on null. Receiver: null Tried calling: name #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:38:5) #1 ProgramCompiler._emitSuperTarget (package:dev_compiler/src/kernel/compiler.dart:5373:41) #2 ProgramCompiler.visitSuperMethodInvocation (package:dev_compiler/src/kernel/compiler.dart:5366:24) #3 SuperMethodInvocation.accept (package:kernel/ast.dart:6215:44) #4 ProgramCompiler._visitExpression (package:dev_compiler/src/kernel/compiler.dart:3870:20) #5 ProgramCompiler.visitExpressionStatement (package:dev_compiler/src/kernel/compiler.dart:3951:12) #6 ExpressionStatement.accept (package:kernel/ast.dart:8842:43) #7 ProgramCompiler._visitStatement (package:dev_compiler/src/kernel/compiler.dart:3776:20) #8 MappedListIterable.elementAt (dart:_internal/iterable.dart:413:31) #9 ListIterator.moveNext (dart:_internal/iterable.dart:342:26) #10 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:206:27) #11 new _GrowableList.of (dart:core-patch/growable_array.dart:153:28) #12 new List.of (dart:core-patch/array_patch.dart:51:28) #13 ListIterable.toList (dart:_internal/iterable.dart:213:44) #14 ProgramCompiler.visitBlock (package:dev_compiler/src/kernel/compiler.dart:3964:62) #15 Block.accept (package:kernel/ast.dart:8898:43) #16 ProgramCompiler._visitStatement (package:dev_compiler/src/kernel/compiler.dart:3776:20) #17 ProgramCompiler._emitFunctionScopedBody (package:dev_compiler/src/kernel/compiler.dart:3809:18) #18 ProgramCompiler._emitSyncFunctionBody.<anonymous closure> (package:dev_compiler/src/kernel/compiler.dart:3578:17) #19 ProgramCompiler._withLetScope (package:dev_compiler/src/kernel/compiler.dart:2376:25) #20 ProgramCompiler._withCurrentFunction (package:dev_compiler/src/kernel/compiler.dart:3612:18) #21 ProgramCompiler._emitSyncFunctionBody (package:dev_compiler/src/kernel/compiler.dart:3574:17) #22 ProgramCompiler._emitFunction (package:dev_compiler/src/kernel/compiler.dart:3391:11) #23 ProgramCompiler._emitMethodDeclaration (package:dev_compiler/src/kernel/compiler.dart:1970:12) #24 ProgramCompiler._emitClassMethods (package:dev_compiler/src/kernel/compiler.dart:1911:23) #25 ProgramCompiler._emitClassDeclaration (package:dev_compiler/src/kernel/compiler.dart:700:21) #26 ProgramCompiler._emitClass (package:dev_compiler/src/kernel/compiler.dart:622:21) #27 List.forEach (dart:core-patch/growable_array.dart:433:8) #28 ProgramCompiler._emitLibrary (package:dev_compiler/src/kernel/compiler.dart:571:23) #29 List.forEach (dart:core-patch/growable_array.dart:433:8) #30 ProgramCompiler.emitModule (package:dev_compiler/src/kernel/compiler.dart:431:15) #31 JavaScriptBundler.compile (package:frontend_server/src/javascript_bundle.dart:152:33) <asynchronous suspension> #32 FrontendCompiler.writeJavascriptBundle (package:frontend_server/frontend_server.dart:665:32) <asynchronous suspension> #33 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:573:9) <asynchronous suspension> #34 listenAndCompile.<anonymous closure> (package:frontend_server/frontend_server.dart:1154:11) <asynchronous suspension> the Dart compiler exited unexpectedly. Failed to compile application. Exited (sigterm)
    1 نقطة
  8. لدي backend يعمل ب django لعمل التحقق من بيانات المستخدم يعيد المخدم عبارة {"username":["This field is required."]} بالرغم من إرسال البريد الاكتروني عبر طلب POST signIn(String email, String pass) async { SharedPreferences sharedPreferences = await SharedPreferences.getInstance(); Map data = {'email': email, 'password': pass}; var jsonResponse = null; var response = await http.post(Uri.parse('http://syy.pythonanywhere.com/login/'), body: data); if (response.statusCode == 200) { jsonResponse = json.decode(response.body); if (jsonResponse != null) { setState(() { _isLoading = false; }); sharedPreferences.setString("token", jsonResponse['token']); Navigator.of(context).pushAndRemoveUntil( MaterialPageRoute(builder: (BuildContext context) => Home()), (Route<dynamic> route) => false); } } else { setState(() { _isLoading = false; }); print('request error'); print(response.body); } }
    1 نقطة
  9. لدي صف حالة لعمل تسجيل دخول للمستخدم يتصل بالسيرفر لكن لدي مشكلة أن الزر غير مفعل و غير قابل للنقر كنت قد حددت دالة للتحقق checkInput وأسندتها للخاصية onPress import 'dart:convert'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:http/http.dart' as http; import 'main.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:sy_traffic_mangement/homepage.dart'; class LoginPage extends StatefulWidget { @override _LoginPageState createState() => _LoginPageState(); } class _LoginPageState extends State<LoginPage> { final TextEditingController emailController = new TextEditingController(); final TextEditingController passwordController = new TextEditingController(); bool _isLoading = false; @override Widget build(BuildContext context) { SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.light .copyWith(statusBarColor: Colors.transparent)); return Scaffold( body: Container( decoration: BoxDecoration( gradient: LinearGradient( colors: [Colors.blue, Colors.teal], begin: Alignment.topCenter, end: Alignment.bottomCenter), ), child: _isLoading ? Center(child: CircularProgressIndicator()) : ListView( children: <Widget>[ headerSection(), textSection(), buttonSection(), ], ), ), ); } signIn(String email, String pass) async { SharedPreferences sharedPreferences = await SharedPreferences.getInstance(); Map data = {'email': email, 'password': pass}; var jsonResponse = null; var response = await http.post(Uri.parse('http://syy.pythonanywhere.com/login/'), body: data); if (response.statusCode == 200) { jsonResponse = json.decode(response.body); if (jsonResponse != null) { setState(() { _isLoading = false; }); sharedPreferences.setString("token", jsonResponse['token']); Navigator.of(context).push( MaterialPageRoute(builder: (BuildContext context) => Home() ),); } } else { setState(() { _isLoading = false; }); print('request error'); print(response.body); } } Container buttonSection() { return Container( width: MediaQuery.of(context).size.width, height: 40.0, padding: EdgeInsets.symmetric(horizontal: 15.0), margin: EdgeInsets.only(top: 15.0), child: RaisedButton( onPressed: checkInput(), elevation: 0.0, color: Colors.purple, child: Text("Sign In", style: TextStyle(color: Colors.white70)), shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(5.0)), ), ); } checkInput() { print(emailController.text + ' ' + passwordController.text ); if (emailController.text == "" || passwordController.text == "") return null; setState(() { _isLoading = true; }); signIn(emailController.text, passwordController.text); }
    1 نقطة
  10. عند تحميل التطبيق سيتم تنفيذ دالة checkInput لأول مرة و إسناد قيمتها للدالة onpress كتابع. وأنت تريد تطبيق دالة التحقق بعد النقر، لذلك نجعل الزر يستدعي دالة وهي بدورها تستدعي دالة التحقق ليصبح: onPressed: () { checkInput(); }, حاول مجدداً يتوجب أن يعمل الزر
    1 نقطة
  11. ما هو الفرق بين ال flex-basis and flex-grow و ال width
    1 نقطة
  12. الخاصية flex تُحدِّد كيف سيتمدد أو يتقلص أحد عناصر flex لكي يملأ المساحة المتوافرة في حاوية flex. هذه الخاصية المختصرة تضبط الخاصيات flex-grow و flex-shrink و flex-basis. القيمة الابتدائية flex-grow: 0 flex-shrink: 1 flex-basis: auto الخاصية flex-grow تُحدِّد معامل التمدد لأحد عناصر flex، وهي تُحدِّد مقدار المساحة التي يجب أن يأخذها العنصر داخل حاوية flex. مثال على توضيح استخدام الخاصية شيفرة HTML <div id="content"> <div class="box" style="background-color: salmon;">A</div> <div class="box" style="background-color: lightblue;">B</div> <div class="box" style="background-color: gold;">C</div> <div class="box1" style="background-color: crimson;">D</div> <div class="box1" style="background-color: lightgreen;">E</div> <div class="box" style="background-color: cadetblue;">F</div> </div> شيفرة CSS #content { display: flex; } div { padding: 0.25em; } .box { flex-grow: 1; border: 3px solid rgba(0,0,0,.2); } .box1 { flex-grow: 2; border: 3px solid rgba(0,0,0,.2); } الخاصية flex-basis تُحدِّد القياس الرئيسي (main size) لأحد عناصر flex، وهذه الخاصية تضبط قياس صندوق المحتوى (content box) إلا إذا حُدِّدَ غير ذلك باستخدام الخاصية box-sizing. هنا مثال لتوضيح الخاصية بشكل دقيق . الخاصية width تُحدِّد عرض أحد العناصر، وتستخدم هذه الخاصية افتراضيًا لتحديد عرض منطقة المحتوى (content area)، لكن إن كانت الخاصية box-sizing مضبوطة إلى border-box فستُحدِّد عرض العنصر بدءًا من الحافة الخارجية للإطار. يمكنك أيضاً الإطلاع على المزيد على موسوعة حسوب من هنا : الخاصية flex-basis . الخاصية flex-grow . الخاصية width .
    1 نقطة
  13. اكتب برنامج يحتوى على ① دالة تبحث عن أكبر قيمة في مصفوفه وتعيد موقع هذه القيمه. ② داله تبحث عن أصغر قيمة وتعيد موقعها. ③ دالة تستقبل المواقع وتبادل بينهم.
    1 نقطة
  14. هل هذا جيد .behind_the_picture_liverpool { display: inline-block; background-color: white; border-radius: 50%; -webkit-border-radius: 50%; -moz-border-radius: 50%; -ms-border-radius: 50%; -o-border-radius: 50%; width: 120px; height: 120px; padding: 20px ; z-index: 123; position: relative ; } .liverpool_name{ display: inline-block ; background-color: white ; width: 250px ; height: 80px ; text-align: center ; border-radius: 50px ; -webkit-border-radius: 50px ; -moz-border-radius: 50px ; -ms-border-radius: 50px ; -o-border-radius: 50px ; padding: 25px ; font-size: 20px; position: relative; top: 5px; left: -55px; }
    1 نقطة
  15. هل بعد تعلم الجافا سكريبت اصبح علي تعلم فريم وورك زي react
    1 نقطة
  16. يوجد مشاريع عديدة في دورة تطوير واجهات المستخدم مثل تطوير خمس صفحات هبوط Landing pages وتطوير واجهة مثل موقع يوتيوب وتطوير واجهة متجر إلكتروني كامل متعدد الصفحات وتطوير لوحة تحكم كاملة .. إلخ. ولكي تحصل على أقصى إستفادة من هذه الدروس والمشاريع حاول أن تشاهد كل درس وقم بتطبيق محتوياته مع نفسك بدون الرجوع إلى الدرس، وحاول أن تحل المشاكل البرمجية بنفسك لتعتاد على حل المشاكل والأخطاء، وان وجدت أنك لم تفهم درس معين جيدًا فقم بمشاهدته مرة أخرى. حاول كذلك أن تقرأ مقالات في نفس المجال أو تتحدث عن نفس التقنيات فسوف يفيدك هذا الأمر كثيراً، كما يوجد في أكاديمية حسوب مئات المقالات الخاص بالبرمجة بشكل عام يمكنك الاطلاع عليها من هنا.
    1 نقطة
  17. سؤالين اخرين يا استاذي الفاضل المشاريع كيف مثل صفحات الهبوط وكذلك كيف يمكنني مذاكرتها بطريقه صحيحه وفعاله انا اتقنت html css javascript واستطيع التعامل مع bootstap بشكل نوعا ما جيد جدا كيف ازيد من اتقاني بطريقه صحيحه وفعاله واسف تبعت حضرتك معي واسالتي الكثيره
    1 نقطة
  18. يمكنك أن تتعلم React.js إن أردت، ولكن دورة تطوير واجهات المستخدم تركز على إستخدام تقنيات مختلفة مثل ajax و webpack و jquery .. إلخ، وبعد تعلم هذه الأدوات والتقنيات سيكون من السهل تعلم أي إطار عمل مثل React.js أو Vue أو Angular لأنك ستكون قد فهم كل الأساسيات ويمكنك أن تقوم بعمل أي شيء بدون إستخدام هذه المكتبات حتى. أنصحك أن تكمل الدورة حتى النهاية وبعد ذلك أنتقل لتعمل مكتبة مثل React.js لتزيد من خبراتك ولتنافس بشكل أقوى في سوق العمل وستجد أن تعلم مثل هذه المكتبات سهل للغاية ويمكنك تعلم أساسياتها في أيام قليلة.
    1 نقطة
  19. التصميم جيد عموما ولكن أظنه يحتاج بعض الضبط قليلا، فيما يلي بعض الملاحظات حول ذلك: يظهر انزلاق بسبب تجاوز للعناصر على مستوى المحور الأفقي، تأكد من اضافة overflow-x:hidden الى عنصر body للتخلص من المشكلة. نفس ملاحظة المدرب أسامة، أظنك تحتاج اظهار قائمة التصفح. بالوضعية الحالية لقائمة التصفح، لا يوجد ضرورة لاضافة الأيقونة التي تقوم بإظهار وإخفاء القائمة. فهكذا أنت تضطر المستخدمين الصعود الى أعلى الصفحة ثم الضغط من أجل إظهار القائمة لمجرد التصفح الى عنصر آخر. وهو بلا شك ما سيعكس تجربة تصفح سيئة. الحل: قم بإعطاء القائمة وضعية ثابتة position:fixed بالإضافة إلى إبقاء زر الإخفاء. بالنسبة للقسم الأول، قسم عارض الشرائح.يوجد الكثير من المساحات الفارغة التي تحتاج الإهتمام بها أكثر. يمكنك مثلا ضبط حجم الصور ليحتل مساحة أكبر. يمكنك أيضا اضافة أسهم أو دوائر لإعطاء عارض الشرائح مرونة أكثر. أظنك تحتاج اعادة اختيار الصور بعناية، لا تظهر الصور بخلفيات شفافة بشكل جيد، كما أنك تقوم بتبديد جودة الصور عن طريق اعطاء صور من مقاسات مختلفة نفس المقاسات (يمكنك لتفادي هذا المشكل اعطاء الصور عرضا واحدا مع ارتفاع تلقائي، ستلاحظ فرقا كبيرا بهذا). بالقسم الثاني، قسم Popular items حاول المحافظة على ما يسمى النظرة المتناظرة symmetric look. فوجود 5 بطاقات في الصف الأول و 1 في الصف الثاني لا يعطي انطباعا جيدا. أضف 4 أخرى الى الصف الثاني أو قم بالغاء الصف الثاني تماما. بقسم المعرض، تأكد من التخلص من الفراغات السلبية negative spaces. وهي بشكل بسيط الفراغات غير المتساوية بين عناصر نفس الجنس. لاحظ: يعطي هذا انطباعا عن أن الأقسام منفصلة وغير منظمة. درجات الألوان بحدود البطاقات في قسم المعرض حادة جدا وتقليدية، أظنك تحتاج تخفيفها والاهتمام بها أكثر. وتبقى مجرد ملاحظات يمكن أن يختلف فيها مصممو واجهات الاستخدام، فالمجال بدرجة أولى مجال ابداعي، وأشياء مثل الفن والجمال لا يمكن تحديدها وضبطها بسهولة.
    1 نقطة
  20. يمكنك أيضًا استخدام التعابير النمطية Regex في تحديد الأحرف المتكررة، بالاستفادة من التابع match ضمن متغير النص المطلوب اختباره كالتالي: function hasRepeatedChars(string) { return string.match(/(.)\1/) !== null; } console.log(hasRepeatedChars("تجربة")) // false console.log(hasRepeatedChars("تججربة")) // true يمكنك القراءة أكثر عن التعابير النمطية ضمن المقالات التالية:
    1 نقطة
  21. السلام عليكم كيف يمكن انشاء مربع سحري! بلغة البايثون 3 يحتوي علي تلات اعمدة وتلات صفوف ؟
    1 نقطة
  22. البرنامج بسيط، فيكفي إنشاء مصفوفة من 10 أعداد صحيحة حيث سنستخدم حلقة التكرار for لملئ هذه المصفوفة بالأعداد المطلوبة ومن ثم سنستخدم نفس حلقة التكرار لمقارنة الأعداد واستخراج اكبر واصغر عدد. اعتبرنا في البداية أن أول عدد في المصفوفة هو أكبر وأصغر عدد ثم بدأنا بالمقارنة مع بقية الأعداد فإذا وجدنا عدد اكبر/اصغر منه غيّرنا قيمة المتغير mi أو ma (متغيرات اكبر واصغر قيمة). #include <iostream> using namespace std; int main() { int T[10]; int i, mi, ma; for (i=0;i<10;i++) { cout<<"Enter a number "; cin>>T[i]; } mi = T[0]; ma = T[0]; for (i=1;i<10;i++) { if (T[i]<mi) mi=T[i]; if (T[i]>ma) ma=T[i]; } cout<<"The Max is "<<ma<<endl; cout<<"The Min is "<<mi<<endl; }
    1 نقطة
×
×
  • أضف...