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

السؤال

Recommended Posts

  • 0
نشر
  بتاريخ On 8‏/12‏/2022 at 07:32 قال بلال زيادة:

حاول وضع الويدجت الخاص بأيقونة العين داخل ويدجت Expanded أو Flexible ، كمثال على ذلك 

Row( 
  children:[
    Expanded(
      child: // Any Widget Here
    )
  ]
)

أو باستخدام Flexible

Row( 
  children:[
    Flexible(
      child: // Any Widget Here
    )
  ]
)

 

أظهر المزيد  

للأسف مازالت المشكله موجود ولقد لاحظت مشكله اخرى عند تشغيل البرنامج مباشره وهي موضحه في الصوره

asasasssasd32323322323.png

  بتاريخ On 8‏/12‏/2022 at 07:32 قال بلال زيادة:

حاول وضع الويدجت الخاص بأيقونة العين داخل ويدجت Expanded أو Flexible ، كمثال على ذلك 

Row( 
  children:[
    Expanded(
      child: // Any Widget Here
    )
  ]
)

أو باستخدام Flexible

Row( 
  children:[
    Flexible(
      child: // Any Widget Here
    )
  ]
)

 

أظهر المزيد  

هل تريد ان ارسل لك الكود كاملا

  • 0
نشر
  بتاريخ On 8‏/12‏/2022 at 07:43 قال Mohammmed Mahmoud:

للأسف مازالت المشكله موجود ولقد لاحظت مشكله اخرى عند تشغيل البرنامج مباشره وهي موضحه في الصوره

هل تريد ان ارسل لك الكود كاملا

أظهر المزيد  

نعم قم بإرسال الكود لو سمحت. 

  • 0
نشر (معدل)
  بتاريخ On 8‏/12‏/2022 at 07:56 قال بلال زيادة:

نعم قم بإرسال الكود لو سمحت. 

أظهر المزيد  
  • جزاك الله خير المشكله تعبتني المشكله بس هي ما تأثر على البرنامج بس نفسي اعرف شو سببها 
    import 'package:flutter/material.dart';
    import 'package:socend_project/auth/sing_up_page.dart';
    
    import '../home/home_page.dart';
    
    class log_in extends StatefulWidget {
      const log_in({Key? key}) : super(key: key);
    
      @override
      State<log_in> createState() => _log_inState();
    }
    
    class _log_inState extends State<log_in> {
      bool?see_or_no = true  ;
      @override
      Widget build(BuildContext context) {
        return Scaffold(
          appBar: AppBar(
            title: Text("Log-in (noteApp)"),
            centerTitle: true ,
            backgroundColor: Colors.black,
          ),
          body: Container(
            width: double.infinity,
            height: double.infinity,
            child : Column(
                mainAxisAlignment: MainAxisAlignment.spaceAround,
                crossAxisAlignment: CrossAxisAlignment.center,
                children: [
                    Expanded(
                    flex: 9,
                    child: Container(
                        child : Image.network(
                          "https://cdn-icons-png.flaticon.com/512/1159/1159633.png" ,
                          width: 212,
                          height: 212 ,
                        )),
                  ),
                    SingleChildScrollView(
                        child: Expanded(
                    flex: 5,
                    child :
                      Container(
                    padding: EdgeInsets.only(top: 10),
                    child: Column(
                      children: [
                        Container(
                          padding: EdgeInsets.symmetric(horizontal: 30.0),
                          child: TextField(
                            keyboardType: TextInputType.emailAddress ,
                            autofocus: true ,
                            cursorColor: Colors.black,
                            decoration: InputDecoration(
                              label: Text("Please enter your E-mail"),
                              border: OutlineInputBorder(
                                borderSide: BorderSide(width: 3.0)
                              ),
                              prefixIcon: Icon(Icons.alternate_email) ,
    
                            ),
                          ),
                        ),
                        SizedBox(height: 20.0,),
                        Container(
                          padding: EdgeInsets.symmetric(horizontal: 30.0),
                          child: TextField(
    
                            keyboardType: TextInputType.emailAddress ,
                            obscureText: see_or_no!,
                            cursorColor: Colors.black,
    
                            decoration: InputDecoration(
                                label: Text("Please enter your Password"),
                              border: OutlineInputBorder(
                                  borderSide: BorderSide(width: 3.0)
                              ),
                                prefixIcon: Icon(Icons.password) ,
                              suffix: Flexible(child : InkWell(
    
                                  onTap: (){
                                    setState(() {
                                      if(see_or_no==true){
                                        see_or_no = false ;
                                      }else
                                        {
                                          see_or_no = true ;
                                        }
                                    });
                                  },
                                  child: see_or_no==false ? Icon(Icons.remove_red_eye , size: 20,) : Icon(Icons.visibility_off , size: 20),
                              )
                              )
    
    
                            ),
                          ),
                        ),
                        SizedBox(height: 5.0,),
                        Container(
                          padding: EdgeInsets.symmetric(horizontal: 30.0),
                          child: Row(
                            children: [
                              Text("If You Don't Have An Account"),
                              TextButton(
                                onPressed: (){
                                  Navigator.push(context,
                                  MaterialPageRoute(builder: (context) => sing_up()));
    
                                },
                                child: Text("Press Here!"),
                          ),
                            ]
                        ),
                        ),
    
                      ],
                    ),
                  ),
                  )
                    ),
                  Container(
                      width: double.infinity,
                      color: Colors.black,
                      child : MaterialButton(
                        onPressed: (){
                        Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => main_home())) ;
                      },
                      child: Text("Log-in" , style: TextStyle(color: Colors.white),) ,
                        color: Colors.black,
    
                    ),
                  ) ,
    
              ],
            ),
    
          ),
        );
      }
    }
    

     

تم التعديل في بواسطة Mohammmed Mahmoud

انضم إلى النقاش

يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.

زائر
أجب على هذا السؤال...

×   لقد أضفت محتوى بخط أو تنسيق مختلف.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   جرى استعادة المحتوى السابق..   امسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

  • إعلانات

  • تابعنا على



×
×
  • أضف...