HomeiOS DevelopmentFlutter app: Picture is seen in debug mode however not in launch...

Flutter app: Picture is seen in debug mode however not in launch mode for ios


My flutter software for ios units is going through an error. Few of the photographs are getting loaded in debug mode however not getting loaded in launch mode.

`

import 'package deal:flutter/materials.dart';
import 'package deal:get/get.dart';
import 'package deal:smooth_page_indicator/smooth_page_indicator.dart';
import 'beforeLogin.dart';
import 'intro_screen/intro_screen_1.dart';
import 'intro_screen/intro_screen_2.dart';
import 'intro_screen/intro_screen_3.dart';

class StartIntro extends StatefulWidget {
  const StartIntro({tremendous.key});

  @override
  State<StartIntro> createState() => _StartIntroState();
}

class _StartIntroState extends State<StartIntro> {
  PageController _controller = PageController();

  bool onLastPage = false;

  void navigateToLogin() {
    Navigator.pushNamedAndRemoveUntil(
        context, BeforeLogin.idScreen, (route) => false);
  }

  @override
  Widget construct(BuildContext context) {
    Measurement measurement = MediaQuery.of(context).measurement;
    var heightDevice = measurement.top;
    return Scaffold(
        physique: Stack(
      youngsters: [
        PageView(
          controller: _controller,
          onPageChanged: (index) {
            setState(() {
              onLastPage = (index == 2);
            });
          },
          children: [
            IntroPage1(),
            IntroPage2(),
            IntroPage3(),
          ],
        ),
        Container(
          alignment: Alignment(0, 0.8),
          youngster: Row(
            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
            youngsters: [
              ElevatedButton(
                onPressed: navigateToLogin,
                style: ElevatedButton.styleFrom(
                  backgroundColor: Colors.green.shade500,
                ),
                child: Text(
                  'skip'.tr,
                  style: TextStyle(
                    color: Colors.white,
                    fontWeight: FontWeight.bold,
                    fontSize: heightDevice * 0.01716738,
                  ),
                ),
              ),
              SmoothPageIndicator(controller: _controller, count: 3),
              onLastPage
                  ? ElevatedButton(
                      onPressed: navigateToLogin,
                      style: ElevatedButton.styleFrom(
                        backgroundColor: Colors.green.shade500,
                      ),
                      child: Text(
                        'sign_in'.tr,
                        style: TextStyle(
                          color: Colors.white,
                          fontWeight: FontWeight.bold,
                          fontSize: heightDevice * 0.01716738,
                        ),
                      ),
                    )
                  : ElevatedButton(
                      onPressed: () => {
                        _controller.nextPage(
                          duration: Duration(milliseconds: 500),
                          curve: Curves.easeIn,
                        ),
                      },
                      style: ElevatedButton.styleFrom(
                        backgroundColor: Colors.green.shade500,
                      ),
                      child: Text(
                        'next'.tr,
                        style: TextStyle(
                          color: Colors.white,
                          fontWeight: FontWeight.bold,
                          fontSize: heightDevice * 0.01716738,
                        ),
                      ),
                    ),
            ],
          ),
        ),
      ],
    ));
  }
}

`

introscreen 1:

// First Intro Display

import 'package deal:flutter/materials.dart';

class IntroPage1 extends StatelessWidget {
  @override
  Widget construct(BuildContext context) {
    Measurement measurement = MediaQuery.of(context).measurement;
    var heightDevice = measurement.top;
    var widthDevice = measurement.width;
    return Scaffold(
      physique: Container(
        width: double.infinity,
        ornament: BoxDecoration(
          coloration: Colours.white,
        ),
        youngster: Heart(
          youngster: Stack(
            youngsters: [
              Positioned(
                  bottom: heightDevice*0.30042918,
                  left: 0,
                  right: 0,
                  child: Column(
                    children: [
                      Image.asset(
                        'images/intro1.png',
                        width: widthDevice*0.85,
                      ),
                      SizedBox(
                        height: heightDevice*0.02,
                      ),
                      Padding(
                        padding: EdgeInsets.only(left: widthDevice*0.11627907, right: widthDevice*0.11627907,),
                        child: Flexible(
                          child: Text(
                            'We Scored a ZERO! Zero Commission Charged From Auto Rickshaw Drivers',
                            style: TextStyle(
                              fontSize: heightDevice*0.025,
                              fontWeight: FontWeight.bold,
                            ),
                            textAlign: TextAlign.center,
                          ),
                        ),
                      )
                    ],
                  ))
            ],
          ),
        ),
      ),
    );
  }
}

introscreen 2:

// Second Intro Display

import 'package deal:flutter/materials.dart';

class IntroPage2 extends StatelessWidget {

  @override
  Widget construct(BuildContext context) {
    Measurement measurement = MediaQuery.of(context).measurement;
    var heightDevice = measurement.top;
    var widthDevice = measurement.width;
    return Scaffold(
      physique: Container(
        width: double.infinity,
        ornament: BoxDecoration(
          coloration: Colours.white,
        ),
        youngster: Heart(
          youngster: Stack(
            youngsters: [
              Positioned(
                  bottom: heightDevice*0.30042918,
                  left: 0,
                  right: 0,
                  child: Column(
                    children: [
                      Image.asset('images/intro2.png', width: widthDevice*0.85,),
                      SizedBox(height: heightDevice*0.02,),
                      Padding(
                          padding: EdgeInsets.only(left: widthDevice*0.11627907, right: widthDevice*0.11627907,),
                          child: Flexible(
                            child: Text(
                              'Take Rides and Earn Rewards! Assured Coins as Bonus on Each Ride',
                              style: TextStyle(
                                fontSize: heightDevice*0.025,
                                fontWeight: FontWeight.bold,
                              ),
                              textAlign: TextAlign.center,
                            ),
                          )
                      ),
                    ],
                  )
              )
            ],
          ),
        ),
      ),
    );
  }
}

introscreen 3:

// Third Intro Display

import 'package deal:flutter/materials.dart';

class IntroPage3 extends StatelessWidget {

  @override
  Widget construct(BuildContext context) {
    Measurement measurement = MediaQuery.of(context).measurement;
    var heightDevice = measurement.top;
    var widthDevice = measurement.width;
    return Scaffold(
      physique: Container(
        width: double.infinity,
        ornament: BoxDecoration(
          coloration: Colours.white,
        ),
        youngster: Heart(
          youngster: Stack(
            youngsters: [
              Positioned(
                  bottom: heightDevice*0.30042918,
                  left: 0,
                  right: 0,
                  child: Column(
                    children: [
                      Image.asset('images/intro3.png', width: widthDevice*0.85,),
                      SizedBox(height: heightDevice*0.02,),
                      Padding(
                          padding: EdgeInsets.only(left: widthDevice*0.11627907, right: widthDevice*0.11627907,),
                          child: Flexible(
                            child: Text(
                              'Community Tab For Realtime Updates. 100% Transparent!',
                              style: TextStyle(
                                fontSize: heightDevice*0.025,
                                fontWeight: FontWeight.bold,
                              ),
                              textAlign: TextAlign.center,
                            ),
                          )
                      ),
                    ],
                  )
              )
            ],
          ),
        ),
      ),
    );
  }
}

Additionally I get an error when navigating to those pages :
════════ Exception caught by widgets library ═══════════════════════════════════
Incorrect use of ParentDataWidget.
════════════════════════════════════════════════════════════════════════════════

The photographs ought to be loaded in launch mode additionally identical as in android machine.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments