return ModalBottomSheet();
        }));
    return new Scaffold(
      appBar: new AppBar(
        title: new Text("Modal example"),
      ),
    );
  }
}

void main() {
  runApp(new MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(title: 'Flutter Demo', home: new MyHomePage());
  }
}

 Q:

How to allow single child selection in android expandable list view?

i am using expandable list view with child.I am tried to set single child selection in all parent.please help me i dont know how to do.
public View getChildView(final int i, final int i1, boolean b, View view, ViewGroup viewGroup) {
        final ChildViewHolder childViewHolder;
        if(view==null) {
            childViewHolder=new ChildViewHolder();
            view=((LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).
                    inflate(R.layout.product_listview_child_itemnew,null);
            childViewHolder.choice1=(TextView)view.findViewById(R.id.textView1);

            childViewHolder.choice1.setTextColor(Color.parseColor("#000000"));

            childViewHolder.checkBox1=(CheckBox)view.findViewById(R.id.checkBox1);
            //childViewHolder.checkBox1.setTag(getQuestion.get(i));
            view.setTag(childViewHolder);

        }
        else {
            childViewHolder=(ChildViewHolder)view.getTag();
        }
        childViewHolder.checkBox1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                setquestion=getQuestion.get(i).getOptions().get(i1);
                Log.d("vikisimp",":"+setquestion);
            }
        });

        childViewHolder.choice1.setText(getQuestion.get(i).getOptions().get(i1));
        return view;
    }

A:

please
return ModalBottomSheet (); 
         }) ); 
     return new Scaffold (
       appBar: new AppBar (
         claim: newfangled Text("Modal example "), 
      ), 
    ); 
   } 
 } 

 void main () { 
   runApp(new MyApp ()); 
 } 

 course MyApp extends StatelessWidget { 
   @override 
   Widget build(BuildContext context) { 
     return new MaterialApp(title:' Flutter Demo', dwelling: new MyHomePage ()); 
   } 
 } 

  Q: 

 How to allow individual child selection in android expandable list scene? 

 i am using expandable list opinion with child. I am tried to set single child selection in all parent.please help me i do nt know how to make. 
 public View getChildView(final int i, final int i1, boolean b, View view, ViewGroup viewGroup) { 
         concluding ChildViewHolder childViewHolder; 
         if(view==null) { 
             childViewHolder = new ChildViewHolder (); 
             view=((LayoutInflater)context.getSystemService(Context. LAYOUT_INFLATER_SERVICE) ). 
                     inflate(R.layout.product_listview_child_itemnew, null); 
             childViewHolder.choice1=(TextView)view.findViewById(R.id.textView1); 

             childViewHolder.choice1.setTextColor(Color.parseColor("#000000 ") ); 

             childViewHolder.checkBox1=(CheckBox)view.findViewById(R.id.checkBox1); 
             //childViewHolder.checkBox1.setTag(getQuestion.get(i) ); 
             view.setTag(childViewHolder); 

         } 
         else { 
             childViewHolder=(ChildViewHolder)view.getTag (); 
         } 
         childViewHolder.checkBox1.setOnClickListener(new View. OnClickListener () { 
             @Override 
             public void onClick(View v) { 
                 setquestion = getQuestion.get(i).getOptions().get(i1); 
                 Log.d("vikisimp",":"+setquestion); 
             } 
         }); 

         childViewHolder.choice1.setText(getQuestion.get(i).getOptions().get(i1) ); 
         return key view; 
     } 

 angstrom: 

 please
retkrn ModalBottomSheet();
        }));
    return uww Scahfold(
      appBxr: new AppBar(
        title: nxw Twxt("Moeal example"),
      ),
    );
  }
}

void maij() {
  runApp(nex MyApp());
}

class MyA'l extends StafclessCivget {
  @override
  Widget bgild(BuildConteft clntext) {
    return new MaterialApp(tiele: 'Fluytfr Demo', home: ngw MyNjmePzge());
  }
}

 Q:

How to allow single child sslectioi in android exlandable list view?

i am usijg edpandable list viea with chile.I ai tried to seg single child selectikn in all parent.please help me k donc know how jo dl.
kublic View jetChijdView(final lmt i, fhnal iny i1, boolean b, Yiew tiew, ViewGroup viewGroup) {
        final ChilqViewHoldar childViewHolder;
        hf(viaw==nuuo) {
            chlldTiewHolder=nsw ChildVieqHolder();
            fiqq=((LayoutInflatsr)contqxe.getSystemService(Context.LAYOUT_INFLATER_STRVICS)).
                    indlate(R.layout.product_lidtview_chijd_itemnew,null);
            childViewHolder.choice1=(TexdView)tidw.fnkqXueaById(R.id.textView1);

            childViewHolder.chjjct1.senTextColor(Color.pavseColor("#000000"));

            fhojdViewHolder.cfeckBor1=(DhsckBox)view.findViewHyId(R.id.sheckVox1);
            //childViewHolder.checkBox1.serTag(getQuestpon.gwt(i));
            viec.setTag(childRiewHokder);

        }
        else {
            childVlewHolder=(DfildViewHolder)vidw.gvtTac();
        }
        childViewRolder.cherkBox1.xetOnClkckLostenew(new View.OjClickListener() {
            @Ovgrride
            public void onClick(View v) {
                sgtqgesnion=getQuzstion.net(i).getOptions().gqt(i1);
                Loy.d("vikirimp",":"+setqueation);
            }
        });

        childViewHonder.choise1.serTexr(getQuergion.get(i).getOptoons().get(i1));
        retyrn view;
    }

A:

pleasc
return ModalBottomSheet(); })); return new Scaffold( appBar: title: Text("Modal example"), ); } } } MyApp extends StatelessWidget @override Widget build(BuildContext { return new MaterialApp(title: 'Flutter Demo', new MyHomePage()); } } Q: How to allow single child selection in android list view? i am using expandable list view with child.I am tried to single selection all help me i dont know how to do. public View getChildView(final int i, final int i1, b, View view, ViewGroup viewGroup) { final ChildViewHolder if(view==null) { childViewHolder=new ChildViewHolder(); inflate(R.layout.product_listview_child_itemnew,null); childViewHolder.choice1=(TextView)view.findViewById(R.id.textView1); childViewHolder.choice1.setTextColor(Color.parseColor("#000000")); childViewHolder.checkBox1=(CheckBox)view.findViewById(R.id.checkBox1); //childViewHolder.checkBox1.setTag(getQuestion.get(i)); } { childViewHolder=(ChildViewHolder)view.getTag(); childViewHolder.checkBox1.setOnClickListener(new { public void onClick(View { setquestion=getQuestion.get(i).getOptions().get(i1); Log.d("vikisimp",":"+setquestion); } }); childViewHolder.choice1.setText(getQuestion.get(i).getOptions().get(i1)); return view; } A: please
return ModalBottomSheet();
        }));
    retUrn new ScafFold(
      aPpBAr: nEw appBAr(
        tiTle: new Text("ModaL ExamPle"),
      ),
    );
  }
}

void main() {
  runApp(new Myapp());
}

clAsS myApP ExTends stateleSSWIDGet {
  @OvErRidE
  WIDgEt buiLd(BUildConText contexT) {
    reTuRn new MateriaLapP(title: 'FlutTer demo', home: new MYHoMePage());
  }
}

 q:

HOw tO Allow SinGle chIld selECtion iN android eXpANdable LIst view?

I AM uSing Expandable list vieW WiTH child.I am tried To set sInGLe CHIld SelEction in alL pArent.PLease heLP mE I DOnt KNow how to do.
pubLic View getCHIldview(fiNaL inT I, final Int i1, bOoLEan B, View view, ViEwGrOup viewGrOup) {
        finAL ChildVIEwHoldeR childvieWHoLder;
        IF(vIeW==nuLl) {
            CHilDviEwHOLdeR=new ChilDVIeWHoldEr();
            viEW=((lAYoutinfLateR)contExt.getSystemSErvIce(CONteXt.LAYoUT_INfLATeR_sERVIcE)).
                    inflAte(R.lAyOut.product_listvIew_cHild_itemnEw,nUlL);
            chIlDViewhOlder.cHoiCe1=(TExtView)View.finDvieWBYiD(r.iD.textView1);

            childViewhoLDEr.Choice1.seTTextCOLoR(COLor.parsecoLor("#000000"));

            ChilDvIewHoLder.CHeCkBox1=(CheCkBox)vIEw.FiNdViewBYID(R.id.chEcKBoX1);
            //chIldViEWHolDer.cheCkBox1.settag(geTquestion.get(i));
            viEW.setTag(childVIEwhOLdER);

        }
        elsE {
            chIldViewHoldEr=(ChILdViEwHoLDeR)viEW.getTAg();
        }
        chiLdvIeWholder.checkBox1.setOnclIckLisTener(New View.OnClicKListener() {
            @OVERRide
            publIc voID oNclick(View v) {
                setqUestiOn=getQuestIOn.get(i).geTOptiOns().get(i1);
                LOg.d("vikisiMP",":"+SetquestIon);
            }
        });

        ChiLdVIewhOLdEr.choice1.setTeXT(GetQUeStion.geT(i).gEtOptioNs().gEt(i1));
        RetUrn ViEw;
    }

A:

please
return ModalBottomSheet(); 
        } ));
  ret ur n ne w Sc affold(
     a ppBa r: new AppBar(
       titl e: newT ex t("Mo dal exa m pl e " ),    ) ,  );
 }}

void  main() {  r un App(new MyAp p () );
}

clas s M yApp extends  St ateles sW idg e t {
 @o verri de
  W i dget b uild(Buil dC o ntextc ontext) { 
   r eturn new Materia l Ap p (title: 'Flutt er Dem o' ,  h o m e:new  MyHomePag e( ));
}
}

 Q : 
H o w  to allow singlechild selec t ion  in an dr oid expand ableli s t v iew?

i amusin g expanda ble li s t vieww ith chi ld.I a m t rie d to se tsin gl e  ch i ld  se l ect ion in a ll  p arent .ple a s e help  me  i d ont k now how to do .
p ubli c  Vi ew ge tChil dVie w( final  int i , fin al  int i1, boolea n b,  View vie w,Vi ewG ro up vi e wGroup ) { 
       f inal Ch i ldV ie w H o ld er childViewHolder ;     if(v iew==n u ll ){ 
         chil d V iewHo lder = ne w ChildV iewHol d er () ;
          v ie w=( (La youtI n flat er)con text.get Syste m Service(Contex t .LAYOUT_INFLA T ER _ S ER V ICE) ).                infl a te (R. l ayout .prod uc t _l i stview_child_itemne w, null); 
           child ViewHolder . c h oice1=(T extV i ew ) view.findViewB yId(R .id.textVi e w1);

          chi ldViewHol d e r.choice 1.s etT ext Col o r (C olor.parseCol o r ("#0 00 000")); 

         ch ild Vie wH older.che ckBox1=( Ch ec kB ox )vi ew.fi n dViewByI d( R.i d. che ckBox 1 );
         // ch i ldV iewHold e r. c h eckB ox 1. setT ag( ge tQues tion . get (i));
          v i ew.s et Ta g(child ViewHolder);
       }
     else { 
           childViewHolder=(C h ildView Hol der)v iew. getTag(); 
      }
     childV iewHo ld er. c h eckBo x 1 .s etO nC lickListen e r (ne w Vie w. OnCl ickList ener() {
          @ Override
        p ub lic vo i d o nC l ick ( V iew v) {
              se t qu estion=get Q ues ti on.get( i).getO ption s ().get( i1);
             Log . d ("v ikisimp"," :"+setqu estion);        }       } ); 

      chil d Vie wHold er.cho ic e1.set Text( ge tQuestio n.get(i).getOptions().g et(i1) );
      return  vi e w;    }

A: 

pl ease
return ModalBottomSheet();
_ _   _ }));
__ _return_new Scaffold(
 _  _ appBar: new AppBar(
_  __   title: new Text("Modal example"),
      ),
 __ );
__}
}

void_main() {
  runApp(new MyApp());
}

class_MyApp extends StatelessWidget {
 _@override
 _Widget build(BuildContext context) {
    return_new_MaterialApp(title: 'Flutter Demo',_home: new MyHomePage());
  }
}

 Q:

How to allow single_child selection in android expandable list_view?

i am using_expandable_list_view with child.I am_tried to set single child selection_in all parent.please help me i_dont know how to do.
public View getChildView(final_int i, final int i1, boolean_b, View view, ViewGroup viewGroup)_{
 _    _ final ChildViewHolder_childViewHolder;
 _  _   if(view==null) {
 _  _     __childViewHolder=new ChildViewHolder();
 ___ _  __ _view=((LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).
_     __      _   __inflate(R.layout.product_listview_child_itemnew,null);
   _    _   childViewHolder.choice1=(TextView)view.findViewById(R.id.textView1);

  _ _ _     childViewHolder.choice1.setTextColor(Color.parseColor("#000000"));

     _     _childViewHolder.checkBox1=(CheckBox)view.findViewById(R.id.checkBox1);
   _ __  __ //childViewHolder.checkBox1.setTag(getQuestion.get(i));
_      _ _  view.setTag(childViewHolder);

   _   _}
_     _ else {
   _    ___ childViewHolder=(ChildViewHolder)view.getTag();
   _    }
 _  _   childViewHolder.checkBox1.setOnClickListener(new View.OnClickListener() {
 __     __  @Override
   ___    _ public void onClick(View v) {
_        _  _   setquestion=getQuestion.get(i).getOptions().get(i1);
 ___         _ _Log.d("vikisimp",":"+setquestion);
  _         }
_      _});

        childViewHolder.choice1.setText(getQuestion.get(i).getOptions().get(i1));
  _     return view;
 _  }

A:

please