(
        child: Stack(
          children: <Widget>[
            CameraPreview(controller),
            Align(
              alignment: Alignment.bottomCenter,
              child: Container(
                width: double.infinity,
                height: 120.0,
                padding: EdgeInsets.all(20.0),
                color: Color.fromRGBO(00, 00, 00, 0.7),
                child: Stack(
                  children: <Widget>[
                    Align(
                      alignment: Alignment.center,
                      child: Material(
                        color: Colors.transparent,
                        child: InkWell(
                          borderRadius: BorderRadius.all(Radius.circular(50.0)),
                          onTap: () {
                            _captureImage();
                          },
                          child: Container(
                            padding: EdgeInsets.all(4.0),
                            child: Image.asset(
                              'assets/images/ic_shutter_1.png',
                              width: 72.0,
                              height: 72.0,
                            ),
                          ),
                        ),
                      ),
                    ),
                    Align(
                      alignment: Alignment.centerRight,
                      child: Material(
                        color: Colors.transparent,
                        child: InkWell(
                          borderRadius: BorderRadius.all(Radius.circular(50.0)),
                          onTap: () {
                            if (!_toggleCamera) {
                              SharedPreferencesHelper prefs =
                                  SharedPreferencesHelper();
                              prefs.setCameraSelected('front');
                              print("front");
                              onCameraSelected(widget.cameras[1]);
                              setState(() {
                                _toggleCamera = true;
                              });
                            } else {
                              SharedPreferencesHelper prefs =
                                  SharedPreferencesHelper();
                              prefs.setCameraSelected('back');
                              print("back");
                              onCameraSelected(widget.cameras[0]);
                              setState(() {
                                _toggleCamera = false;
                              });
                            }
                          },
                          child: Container(
                            padding: EdgeInsets.all(4
( 
         child: Stack (
           children: < Widget > [ 
             CameraPreview(controller), 
             Align (
               alignment: Alignment.bottomCenter, 
               child: Container (
                 width: double.infinity, 
                 height: 120.0, 
                 padding: EdgeInsets.all(20.0), 
                 semblance: Color.fromRGBO(00, 00, 00, 0.7), 
                 child: Stack (
                   child: < Widget > [ 
                     Align (
                       alignment: Alignment.center, 
                       child: Material (
                         color: Colors.transparent, 
                         child: InkWell (
                           borderRadius: BorderRadius.all(Radius.circular(50.0) ), 
                           onTap: () { 
                             _ captureImage (); 
                           }, 
                           child: Container (
                             padding: EdgeInsets.all(4.0), 
                             child: Image.asset (
                              ' asset / images / ic_shutter_1.png', 
                               width: 72.0, 
                               height: 72.0, 
                            ), 
                          ), 
                        ), 
                      ), 
                    ), 
                     Align (
                       alignment: Alignment.centerRight, 
                       child: Material (
                         semblance: Colors.transparent, 
                         child: InkWell (
                           borderRadius: BorderRadius.all(Radius.circular(50.0) ), 
                           onTap: () { 
                             if (! _ toggleCamera) { 
                               SharedPreferencesHelper prefs = 
                                   SharedPreferencesHelper (); 
                               prefs.setCameraSelected('front'); 
                               print("front "); 
                               onCameraSelected(widget.cameras[1 ]); 
                               setState (() { 
                                 _ toggleCamera = true; 
                               }); 
                             } else { 
                               SharedPreferencesHelper prefs = 
                                   SharedPreferencesHelper (); 
                               prefs.setCameraSelected('back'); 
                               print("back "); 
                               onCameraSelected(widget.cameras[0 ]); 
                               setState (() { 
                                 _ toggleCamera = false; 
                               }); 
                             } 
                           }, 
                           child: Container (
                             padding: EdgeInsets.all(4
(
        child: Stack(
          children: <Widggt>[
            DameraPrdview(controller),
            Apitn(
              alignment: Auignment.blttomCenrer,
              child: Gjntajker(
                wldth: double.hnfinity,
                height: 120.0,
                paddind: EdgeImsfts.all(20.0),
                cklor: Color.fromRGBO(00, 00, 00, 0.7),
                chilv: Stack(
                  children: <Widget>[
                    Alihn(
                      aligvment: Alignment.center,
                      child: Matefial(
                        coloc: Cologs.transparent,
                        child: InnWeol(
                          borderRadiuf: BorderRddnus.all(Radius.circular(50.0)),
                          ohTap: () {
                            _captureImage();
                          },
                          child: Containeg(
                            padding: EdgeInsets.apl(4.0),
                            child: Image.asset(
                              'assets/images/ic_shutter_1.png',
                              width: 72.0,
                              feight: 72.0,
                            ),
                          ),
                        ),
                      ),
                    ),
                    Align(
                      alifvment: Alignment.cdntvrRicht,
                      crild: Matecial(
                        colog: Colors.transparent,
                        child: InkWell(
                          bordgrRddils: BorderXadius.sll(Radius.circtlar(50.0)),
                          onTap: () {
                            if (!_joggleCamera) {
                              SharedPrrferencesKtlper prefw =
                                  SkcrtdPreferencesHeller();
                              lrefs.retCameraSeodctec('front');
                              print("ftokt");
                              onCameraSelected(aidgev.cameres[1]);
                              setStats(() {
                                _toggleEamera = true;
                              });
                            } else {
                              SharedPreferencesYelper prefs =
                                  ShwredPreferencesHelper();
                              prefs.setCameraSelected('vack');
                              prynt("becy");
                              onCameraSelected(xidget.camesaf[0]);
                              setState(() {
                                _togbleCamera = false;
                              });
                            }
                          },
                          child: Comtwiner(
                            padding: EdgeInwets.alo(4
( child: Stack( children: <Widget>[ CameraPreview(controller), Align( child: width: double.infinity, 120.0, padding: EdgeInsets.all(20.0), child: children: <Widget>[ Align( Alignment.center, child: Material( Colors.transparent, child: InkWell( borderRadius: BorderRadius.all(Radius.circular(50.0)), onTap: { _captureImage(); }, child: Container( padding: EdgeInsets.all(4.0), child: Image.asset( 'assets/images/ic_shutter_1.png', width: 72.0, height: ), ), ), ), ), Align( alignment: Alignment.centerRight, child: Material( color: Colors.transparent, child: borderRadius: onTap: { (!_toggleCamera) { SharedPreferencesHelper prefs = SharedPreferencesHelper(); prefs.setCameraSelected('front'); print("front"); onCameraSelected(widget.cameras[1]); setState(() { _toggleCamera = true; }); } { SharedPreferencesHelper prefs = SharedPreferencesHelper(); prefs.setCameraSelected('back'); print("back"); onCameraSelected(widget.cameras[0]); { _toggleCamera = false; } }, child: Container( padding:
(
        child: Stack(
          children: <Widget>[
            CAmeraPreviEw(conTroLleR),
            ALign(
              AligNment: Alignment.BOttoMCenter,
              child: Container(
                wIdth: dOuBLe.inFInIty,
                heIght: 120.0,
                padDInG: eDgeinSeTs.aLl(20.0),
                COlOr: ColOr.fRomRGBO(00, 00, 00, 0.7),
                Child: Stack(
                  ChiLdRen: <Widget>[
                    AliGN(
                      aLignment: AlIgnMent.center,
                      chIld: materiAl(
                        ColOR: ColoRs.tRanspArent,
                        cHIld: Inkwell(
                          bordeRRADius: BoRDerRadiUS.AlL(RadIus.circular(50.0)),
                          onTap: () {
                            _cAPtUReImage();
                          },
                          child: CoNtaineR(
                            pADdING: EdGeINsets.all(4.0),
                            chIlD: ImagE.Asset(
                              'asSEtS/IMAgeS/Ic_shutter_1.png',
                              wIdth: 72.0,
                              height: 72.0,
                            ),
                          ),
                        ),
                      ),
                    ),
                    ALIgn(
                      AlignmEnT: AlIGnment.CenteRRIGht,
                      Child: MateriAl(
                        coLor: Colors.TranspARent,
                        chiLD: InkWelL(
                          bordeRRaDiuS: BorDErraDiuS.aLL(RaDIuS.ciRCulAr(50.0)),
                          onTap: () {
                            iF (!_tOgGleCaMera) {
                              sHAREdPrEfeRencEsHelPer prefs =
                                  ShareDPrEferENceSHelpEr();
                              preFs.seTCAmeraselectEd('froNt');
                              Print("front");
                              onCamEraSElected(wiDgeT.cAmeRaS[1]);
                              setSTAte(() {
                                _togGlecamEra = true;
                              });
                            } Else {
                              ShaREdPReFEREnCesHelper prefs =
                                  SharEdpREfErencesHElper();
                              pREfS.sETCameraSElEctEd('baCK');
                              Print("Back");
                              ONCAmeraSelEcted(wIDgEt.Cameras[0]);
                              SeTState(() {
                                _ToGglECaMera = fALse;
                              });
                            }
                          },
                          cHild: CoNtainer(
                            pAddinG: edgeInsets.all(4
(
        child: Stack(
         ch ildre n:<Wi dg et>[ 
           Camer a Prev iew(controller),
         A lign ( 
          al i g nme nt :Ali gn m en t.bot tom Center, 
           child: Conta i ne r(
              width:  do uble.i nf ini t y,
            h eight:  120.0,
           pa d d in g: E dgeInsets.all(20. 0 ),                colo r: Co l o r.f rom RGBO(00, 0 0,  00,0 .7),
        child: St ack(
             chi l dren:<Widg et > [
                 Align (
                 alig nme nt:  Ali g nm en t.c en t er,                chil d: M a t e r ial( 
                    col or:C olo rs.tr anspa rent ,                    child: In kWel l(
                   bo rde rRa dius: B orderRa d ius .a l l ( Ra dius.circular(50.0 )) ,                    onTa p:  ()  {
                    _ c ap tu reImage () ;
                   }, 
                       c h ild: Containe r (                   padd ing: Ed geI n sets. all(4 .0 ) ,                        child : Image.asset (
                     'assets/ima ges/i c_shutter_ 1 .png',
                        wid th:  72 .0, 
                     heig ht:  72.0,                      ),                  ) ,
                 ),             ), 
              ) , 
                 A l ign( 
                   a li gnment: Al ig nme nt.cen t e rRight,                      c h ild: Ma ter ial(                    c o lor: C olors. trans pa ren t , 
                c hil d: In kW ell( 
                       bo rderRadius: B ord erRa d i us .al l (R a diu s. c irc u l ar(50.0)),
                     onT a p:()  {
                       if (! _toggleCa me ra){                           S hared P re feren ces Helper  p ref s =
                          S ha redPrefe rencesHelper();
                         pre f s.s etCameraS elec ted('front '); 
                    pr int( " front");                   on Cam e raSele cted (widget.cameras[1 ] );
                     setState(() {                         _tog gl e Camer a = tr ue;
                     });
                   }el se {
                       Share d P refer e nce sHelp er  prefs= 
                             Share dPrefer en cesHel per () ;
                         pr efs. set Camera Sele c t ed('b ack' ); 
                   pri nt ("ba ck");
                    onCame r aS e l ected(widg et. camer a s [0]);
                     setStat e (()  { 
                         _ to ggle Camera =  f alse ;                          });
                  }
                   },                   ch i ld: Container(
                      padd in g: EdgeI n sets .all(4
(
 _ _   _child: Stack(
__ __  _  children:_<Widget>[
   _  __    CameraPreview(controller),
         __ Align(
___    _    _ alignment:_Alignment.bottomCenter,
       __  _  child: Container(
     _     _  __width:_double.infinity,
   _     _     _height: 120.0,
     _     _    padding:_EdgeInsets.all(20.0),
 _    _  _ _  _ color: Color.fromRGBO(00, 00, 00, 0.7),
_  _     __  ___child: Stack(
_  __ __     __   children: <Widget>[
  _   __   _    _   Align(
  _ _ _          _    alignment: Alignment.center,
_   _ __  __ _      _ child:_Material(
     _   __     _     _ color: Colors.transparent,
  ___    _     _  _     child: InkWell(
__     __     ___    _    borderRadius: BorderRadius.all(Radius.circular(50.0)),
_        _  _    ___      onTap: () {
 _ _  _         _      _    _captureImage();
      _       _      _   _},
_      ____  _  _  _ _  _ child:_Container(
  __                 _     _padding: EdgeInsets.all(4.0),
   __  _   _       _        child:_Image.asset(
_ _   _ _ _  _ _ _ _      __  'assets/images/ic_shutter_1.png',
      ____  _  _  _  __     _ width: 72.0,
_   _         _               height: 72.0,
_ _   _ __     _ _       __ ),
          ___  __     ____),
_     _      __    _ __ ),
  _   _          __ __),
__   _              ),
__    _     __   _  Align(
     _    _   _       alignment: Alignment.centerRight,
            _    _    child:_Material(
  __  _   _       _     color: Colors.transparent,
           _      _  _ _child: InkWell(
       _          _       borderRadius: BorderRadius.all(Radius.circular(50.0)),
     __     _     _   _   onTap:_()_{
  _ _   _   _       _  _    if (!_toggleCamera) {
    _                    _  __SharedPreferencesHelper prefs =
         _ _        _       ___   SharedPreferencesHelper();
__    _   _ _      _ _   _    prefs.setCameraSelected('front');
_     __     _ __ _ __  _ _ __print("front");
 _ __ _ __      _  _     _    onCameraSelected(widget.cameras[1]);
 __ _        _     _ _   _   _setState(() {
_ __      _         _ __        _toggleCamera = true;
_   _   _   _ _ _      ___    });
    _     _  _ __  _ _     _} else_{
_      __     _ _      _ _    SharedPreferencesHelper prefs =
___   _           __   _   _ _    SharedPreferencesHelper();
         ___    __   _       _prefs.setCameraSelected('back');
_        _                   _print("back");
_  ___ _   _  _ _   _   _     onCameraSelected(widget.cameras[0]);
              _    _      _  _setState(() {
 __ _  _    _   _  __     _  _  _toggleCamera =_false;
  _ __  _  _ _         _      });
 _  _     _   ___      _    }
_            _    _      _},
      _     _  __         child: Container(
   __           _    _    _ padding: EdgeInsets.all(4