title: how to use source and destination on Flight multicityn and first destination should be show on second source in Flutter
body: <pre><code>  Widget _multComponent(i) {
      return Container(
        color: Colors.white,
        width: MediaQuery.of(context).size.width,
        child: Column(
          children: &lt;Widget&gt;[
            GestureDetector(
              onTap: () async {
                showModalBottomSheet&lt;dynamic&gt;(
                    isScrollControlled: true,
                    backgroundColor: Colors.transparent,
                    context: context,
                    builder: (context) {
                      return Container(
                        height: MediaQuery.of(context).size.height,
                        padding: EdgeInsets.only(top: 90),
                        child: Stack(
                          children: [
                            Container(
                                child: FlightSearchCity(
                                    localText('car_where_frm', context))),
                          ],
                        ),
                      );
                    }).then((value) {
                  setState(() {
                    flightCityData.GetAirport cityDataFrom = value;
                    if (cityDataFrom != null) {
                      open = &quot;(&quot;;
                      close = &quot;)&quot;;
                      this.cityDataFrom = cityDataFrom;
  
                      _citynamesourceController[i].text = cityDataFrom.cityName;
                      _finalsourceController[i].text = cityDataFrom.airportCode;
                      _sourceController[i].text = cityDataFrom.cityName +
                          &quot; &quot; +
                          open +
                          cityDataFrom.airportCode +
                          close;
                      _sourceAirportCode[i].text = cityDataFrom.cityCode;
                      print(&quot;hereeeeeeeeeeeee&quot;);
                      sourceairportcode = cityDataFrom.airportCode;
                      print(sourceairportcode);
                      // fromCityCode = cityDataFrom.airportCode;
                      // fromStr = cityDataFrom.cityName;
  
                    }
                  });
                });
              },
              child: Row(
                children: [
                  Container(
                      margin: EdgeInsets.only(top: 15, right: 10),
                      height: 20,
                      width: 25,
                      child: SvgPicture.asset(
                        AppAssets.flightIcon1,
                        color: const Color(0xffb4bec8),
                      )),
                  Container(
                    height: 30,
                    width: 200,
                    child: TextFormField(
                      controller: _sourceController[i],
                      enabled: false,
                      maxLength: 12,
                      style: TextStyle(
                        fontSize: 16,
                        fontFamily: &quot;Inter&quot;,
                        fontWeight: FontWeight.bold,
                        color: dark_text_color,
                      ),
                      onChanged: (value) {
                        // _airmilesDataNumber = value;
                      },
                      inputFormatters: [
                        new FilteringTextInputFormatter.allow(
                            RegExp(&quot;[a-zA-Z0-9]&quot;)),
                      ],
                      decoration: InputDecoration(
                          hintText: &quot;Select City/Airport Code&quot;,
                          border: InputBorder.none,
                          hintStyle: TextStyle(
                              fontWeight: FontWeight.bold, color: Colors.black),
                          counterText: &quot;&quot;,
                          contentPadding: EdgeInsets.only(left: 0, bottom: 5)),
                    ),
                  ),
  
                 
                ],
              ),
            ),
            swapmulticity(i),
            new SizedBox(
              width: 20,
            ),
  
            GestureDetector(
              onTap: () async {
                showModalBottomSheet&lt;dynamic&gt;(
                    isScrollControlled: true,
                    backgroundColor: Colors.transparent,
                    context: context,
                    builder: (context) {
                      return Container(
                        height: MediaQuery.of(context).size.height,
                        padding: EdgeInsets.only(top: 90),
                        child: Stack(
                          children: [
                            Container(
                                child: FlightSearchCity(
                                    localText(&quot;where_to&quot;, context))),
                          ],
                        ),
                      );
                    }).then((value) {
                  setState(() {
                    flightCityData.GetAirport cityDataTo = value;
                    if (cityDataTo != null) {
                      open = &quot;(&quot;;
                      close = &quot;)&quot;;
                      this.cityDataTo = cityDataTo;
                      _destinationController[i].text = cityDataTo.cityName +
                          &quot; &quot; +
                          open +
                          cityDataTo.airportCode +
                          close;
                      _citynamedestController[i].text = cityDataTo.cityName;
                      _finaldestinationController[i].text =
                          cityDataTo.airportCode;
                      _destiationAirportCode[i].text = cityDataTo.cityCode;
                      print(&quot;sssssssssss&quot;);
                      if (data != 6) {
                        _sourceController[i + 1].text =
                            _destinationController[i].text;
  
                        _citynamesourceController[i + 1].text =
                            _citynamedestController[i].text;
                        _finalsourceController[i + 1].text =
                            cityDataTo.airportCode;
                        print(&quot;{{{{{{{{&quot;);
                        print(_sourceController[i + 1].text);
                        print(_citynamesourceController[i + 1].text);
                        print(_finalsourceController[i + 1].text);
                      }
  
                      // toCityCode = cityDataTo.airportCode;
                      // toStr = cityDataTo.cityName;
  
                    }
                  });
                });
              },
              child: Row(
                children: [
                  Container(
                      margin: EdgeInsets.only(top: 5, right: 10),
                      height: 20,
                      width: 25,
                      child: SvgPicture.asset(
                        AppAssets.flightIcon,
                        color: const Color(0xffb4bec8),
                      )),
                  Container(
                    height: 40,
                    width: 200,
                    child: TextFormField(
                      controller: _destinationController[i],
                      maxLength: 12,
                      enabled: false,
                      style: TextStyle(
                        fontSize: 16,
                        fontFamily: &quot;Inter&quot;,
                        fontWeight: FontWeight.bold,
                        color: dark_text_color,
                      ),
                      onChanged: (value) {
                        // _airmilesDataNumber = value;
                      },
                      inputFormatters: [
                        new FilteringTextInputFormatter.allow(
                            RegExp(&quot;[a-zA-Z0-9]&quot;)),
                      ],
                      decoration: InputDecoration(
                          hintText: &quot;Select City/Airport Code&quot;,
                          border: InputBorder.none,
                          hintStyle: TextStyle(
                              fontWeight: FontWeight.bold, color: Colors.black),
                          counterText: &quot;&quot;,
                          contentPadding: EdgeInsets.only(left: 0, bottom: 5)),
                    ),
                  ),
                ],
              ),
            ),
  
            new SizedBox(
              height: 3,
            ),
            Divider(
              height: 1,
              color: Colors.grey[500],
              endIndent: 20,
              indent: 10,
            ),
            if (tripTypeValue == 3) calendarforMulticity(i),
            SizedBox(height: 5),
            Divider(
              height: 1,
              color: Colors.grey[500],
              endIndent: 20,
              indent: 10,
            ),
            SizedBox(height: 10),
           
          ],
        ),
      );
    }
  </code></pre>