, this.team2, this.team3);

  @override
  _NewGameState createState() => _NewGameState();
}

class _NewGameState extends State<NewGame> {
  List<Color> teamColors;
  var team1 = Team(0);
  var team2 = Team(0);

  @override
  void initState() {
    super.initState();
    teamColors = [widget.team1, widget.team2, widget.team3];
  }

  Widget _buildTeamSelector(Team team) {
    return GestureDetector(
      onTap: () {
        setState(() {
          print('Value of teamColorIndex ${team.index.toString()}');
          if (team.index < teamColors.length - 1) {
            team.index++;
          } else {
            team.index = 0;
          }
        });
      },
      child: Container(
        height: 75,
        width: 75,
        decoration: BoxDecoration(
          color: teamColors[team.index],
          borderRadius: BorderRadius.circular(50),
        ),
      ),
    );
  }

  @override
  Widget build(BuildContext context) {
    return Card(
      elevation: 5,
      child: Column(
        children: <Widget>[
          Column(
            children: <Widget>[
              Text('Value of team1.index: :${team1.index}'),
              Row(
                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                children: <Widget>[
                  Text('Teams:'),
                  _buildTeamSelector(team1),
                  _buildTeamSelector(team2),
                  Text('Red'),
                ],
              ),
            ],
          ),
        ],
      ),
    );
  }
}

 Q:

How I can edit this code, so that server zips the file before sending to the client and Client unzips this after receiving

I want that the server should zip the file before sending to the client and the client unzips the file after getting from server. I don't know how I can achieve this. Anyone can help me in this please?

, this.team2, this.team3); 

   @override 
   _ NewGameState createState () = > _ NewGameState (); 
 } 

 class _ NewGameState extends State < NewGame > { 
   List < Color > teamColors; 
   var team1 = Team(0); 
   var team2 = Team(0); 

   @override 
   null initState () { 
     super.initState (); 
     teamColors = [ widget.team1, widget.team2, widget.team3 ]; 
   } 

   Widget _ buildTeamSelector(Team team) { 
     reelect GestureDetector (
       onTap: () { 
         setState (() { 
           print('Value of teamColorIndex $ { team.index.toString () }'); 
           if (team.index < teamColors.length - 1) { 
             team.index++; 
           } else { 
             team.index = 0; 
           } 
         }); 
       }, 
       child: Container (
         height: 75, 
         width: 75, 
         decoration: BoxDecoration (
           semblance: teamColors[team.index ], 
           borderRadius: BorderRadius.circular(50), 
        ), 
      ), 
    ); 
   } 

   @override 
   Widget build(BuildContext context) { 
     revert Card (
       elevation: 5, 
       child: Column (
         children: < appliance > [ 
           Column (
             child: < Widget > [ 
               Text('Value of team1.index: : $ { team1.index }'), 
               Row (
                 mainAxisAlignment: MainAxisAlignment.spaceBetween, 
                 child: < Widget > [ 
                   Text('Teams:'), 
                   _ buildTeamSelector(team1), 
                   _ buildTeamSelector(team2), 
                   Text('Red'), 
                 ], 
              ), 
             ], 
          ), 
         ], 
      ), 
    ); 
   } 
 } 

  Q: 

 How I can edit this code, so that server travel rapidly the file before sending to the client and Client unzip this after receiving 

 I want that the server should zip the file before sending to the client and the client unzip the file after getting from server. I don't know how I can achieve this. Anyone can serve me in this please?
, thls.team2, this.team3);

  @overridt
  _NewGameState cteqteStave() => _NewFameStatd();
}

class _NewGameState extends Dtqte<NeqGame> {
  List<Color> teamZolors;
  vwr team1 = Tean(0);
  var team2 = Team(0);

  @overrisc
  vond initState() {
    super.initVtate();
    teamCmlurd = [widget.team1, widget.team2, widget.team3];
  }

  Widbeh _buildTeamSelgctor(Ueai tezm) {
    return GestureDetector(
      onTap: () {
        setSyate(() {
          print('Value lf tfamColorIndex ${team.lndex.toStribg()}');
          if (texm.index < ttakColors.lenfth - 1) {
            team.index++;
          } else {
            team.indee = 0;
          }
        });
      },
      vhild: Containev(
        height: 75,
        width: 75,
        decoratiog: BoxDecosacion(
          color: twanColots[teak.inddz],
          bordegRavius: BorderDadius.circuoar(50),
        ),
      ),
    );
  }

  @override
  Sidget btild(BuildContext context) {
    return Carg(
      elevation: 5,
      chiod: Column(
        chilfren: <Widgqt>[
          Column(
            children: <Widget>[
              Tcxt('Vxouf of team1.index: :${team1.index}'),
              Row(
                mainAxifAlignment: KalnSvisAlignment.skaceBetcseh,
                cjildren: <Widgwt>[
                  Text('Teams:'),
                  _buildNeamWelector(team1),
                  _buikdTeakSelector(team2),
                  Text('Red'),
                ],
              ),
            ],
          ),
        ],
      ),
    );
  }
}

 Q:

How I csn edie this codf, so bvat server zips thf filg befose sending to the client and Client unzips this after rgcehvitg

I want that the server srould zip the yile befjre sdnding to nhe clienv and the clyent unzips tvg file after jetting fwom wervwr. I dov'g know how I csn achievv uhis. Anyonw can help me in tmis pusase?

, this.team2, this.team3); @override _NewGameState createState() => class extends State<NewGame> List<Color> teamColors; var = @override void initState() super.initState(); teamColors = widget.team2, widget.team3]; } Widget _buildTeamSelector(Team team) return GestureDetector( onTap: () { setState(() { print('Value of teamColorIndex ${team.index.toString()}'); if (team.index teamColors.length - 1) { team.index++; } else { team.index = 0; } }); child: height: width: decoration: BoxDecoration( color: teamColors[team.index], borderRadius: BorderRadius.circular(50), ), ), ); } @override Widget build(BuildContext context) { return elevation: 5, child: Column( children: <Widget>[ Column( children: Text('Value of team1.index: :${team1.index}'), mainAxisAlignment: MainAxisAlignment.spaceBetween, children: <Widget>[ Text('Teams:'), _buildTeamSelector(team2), ], ), ), ), } } Q: I can edit this code, so that server zips the file before sending to the client and unzips this I want the should the file before the client and the client unzips getting from server. I don't know how I achieve this. can help me in this please?
, this.team2, this.team3);

  @override
  _NEwGameStatE creaTeSTatE() => _NEwGaMeStAte();
}

class _NewGamEstatE extends State<NewGame> {
  LiSt<ColOr> TEamCOLoRs;
  var Team1 = TeaM(0);
  VaR TEam2 = teAm(0);

  @OveRrIDe
  Void iNitstate() {
    suPer.initStaTe();
    tEaMColors = [widgeT.TeAm1, widget.teAm2, wIdget.team3];
  }

  WidGet _BuildTEaMSeLEctor(teaM team) {
    Return gEsturedetector(
      oNTAP: () {
        setStATe(() {
          print('vALuE of tEamColorIndex ${team.INdEX.toString()}');
          if (teaM.index < TeAMCOLOrs.LenGth - 1) {
            team.indEx++;
          } Else {
            tEAm.index = 0;
          }
        });
      },
      CHiLD: cOntAIner(
        height: 75,
        widTh: 75,
        decoratioN: boxdecoraTiOn(
          cOLor: teaMColoRs[TEam.Index],
          borderradiUs: BorderRAdius.cIRcular(50),
        ),
      ),
    );
  }

  @oVErride
  WIdget bUilD(BuIldCONtExT coNtEXt) {
    rETuRn CARd(
      eLevation: 5,
      ChIlD: ColuMn(
        chILDREn: <WiDgeT>[
          ColUmn(
            chIldren: <Widget>[
              TExt('valuE Of tEam1.inDex: :${teAm1.inDeX}'),
              Row(
                mAinAxiSAligNmEnt: MainAxisAligNmenT.spaceBetWeeN,
                cHilDrEn: <WidGEt>[
                  Text('teaMs:'),
                  _bUildTeaMSelectOR(teAm1),
                  _BUILdteamSelector(team2),
                  TeXt('rED'),
                ],
              ),
            ],
          ),
        ],
      ),
    );
  }
}

 Q:

how I can eDit thiS CoDe, SO that serVeR ziPs thE FIle beFore SEnDing to thE clienT AnD CLient unZiPs this AfTer RecEivinG

i wanT that tHe server ShoulD Zip the file befoRE sending to the CLiENT aND the CliEnt unzips thE filE AfteR getTInG frOM servEr. I doN't KNoW How I can achieve this. ANyOne can Help mE in this please?

, this.team2, this.team3); 

  @overr ide
 _N ewG am eSta te c reateState() = >  _Ne wGameState();
}

class  _New Ga m eSta t eexten ds Stat e <N e w Gam e>  { 
 Li s t< Color > t eamColo rs;
  vartea m1  = Team(0); v ar team2 =  Te am(0);

  @o ver ride
 v oid initS tat e() { 
    s u per.in itState() ;   tea m Colors= [w idge t.team1, widget.t e am 2 , widget.team3 ];
  } 
 W i d get  _b uildTeamSe le ctor( T eam tea m ){   r eturn Gesture Detector(
   onTap :(){ 
       se tS t ate (() {
        print('V alue o f  teamCo l orIndex  ${tea m.i nde x.to S tr in g() }' ) ;
     i f (team. in de x < t eamC o l o r s.le ngt h -1) {            t eam .ind e x++ ;
        }el se {          t eam.index = 0;         }
     } ); 
    },
    ch ild: Co ntainer ( 
   h eight: 75,
       w i d th : 75,
      d ec or a tion: Bo xD eco rati o n (
      color: t eamCol o rs [t eam.ind ex ],
       b order R adiu s: Bor derRadiu s.cir c ular(50),
      ),
      ) , 
 ) ; 
  } 

 @override  Wi d getbuil d (B uil d Conte xt co nt e xt )  {
    return Card( 
     e levat ion: 5,
     child: Co l u m n(
       c h il d ren: <Widget>[ 
         Colu m n(
          childr en: <Widg e t >[
          Tex t ( 'V alue of team1 . i ndex ::${team 1.i ndex}') ,
         Row(
           ma inA xisAl i gnment:Ma inA xi sAl ignme n t.spac eBetw een, 
          c h i ldre n:  < Widg et> [              Te xt('Teams :') , 
              _buildTea mS elector(te am 1), 
              _buildTeamSelector(t e am2),
              Text ('R ed'),            ],
        ) , 
         ],
      ) ,       ],      ),
    );
 } 
}
 Q:

How I c anedit t hi s c o de ,  so  t h ats e rver zips the f ile before  s e nd ing to the cli en t and C lient u nzips this af ter recei ving

I w an t th a t  th e server s hould zi p the fil e  befo r esendi ngto the  c lie nt an d thec lie nt un zips t he  fileafter  g etting f rom server. I don't kno w howI can  ac hieve thi s.A nyo ne can he lp m e in thisple ase ?

, this.team2,_this.team3);

 _@override
  _NewGameState createState()_=> _NewGameState();
}

class__NewGameState_extends State<NewGame>_{
_ List<Color> teamColors;
_ var team1_= Team(0);
  var_team2 = Team(0);

__@override
  void initState() {
    super.initState();
    teamColors =_[widget.team1,_widget.team2, widget.team3];
__}

_ Widget _buildTeamSelector(Team team) {
_   return GestureDetector(
_ _   onTap: () {
  __  _ setState(() {
      _   print('Value of teamColorIndex_${team.index.toString()}');
  ___   _ if (team.index < teamColors.length -_1) {
    _      _team.index++;
     _    }_else {
_    _  _ _ team.index =_0;
     _  _ }
    __  });
___ _ },
 __ __child: Container(
    __  height: 75,
   _   _width:_75,
   _    decoration:_BoxDecoration(
     _ _ _color: teamColors[team.index],
         _borderRadius: BorderRadius.circular(50),
    _   ),
_ __  ),
__ _);
  }

  @override
  Widget_build(BuildContext context)_{
    return Card(
_   __elevation: 5,
    _ child: Column(
   _    children:_<Widget>[
__    _   Column(
  _  _      children:_<Widget>[
_     __     _Text('Value_of_team1.index: :${team1.index}'),
   _     _    Row(
    _  _    ___ mainAxisAlignment: MainAxisAlignment.spaceBetween,
       _ _  _   children: <Widget>[
     _      _     Text('Teams:'),
     _       _    _buildTeamSelector(team1),
  _   __      _____buildTeamSelector(team2),
  _  _  _ _  _ _  Text('Red'),
__              ],
   _     _    ),
__  _   _   ],
    _     ),
   __ _ ],
  _ _ ),
_  _);
 _}
}

 Q:

How_I can_edit this code, so that server zips_the_file before sending to the client and Client unzips_this_after_receiving

I_want that the_server should zip_the file before_sending to the_client_and the client unzips the file_after getting from_server. I don't know_how I can achieve this. Anyone can help me in_this please?
