Flutter Web : Create UI with mobile app size


I have a Flutter app and it is work fine in android , iOS and Web . But in web it has full screen width that is very ugly . How can I create UI as like as mobile version for web ?


Thanks to @nishuthan-s I solved my problem with KisWeb and Container

  child: Container(
    width: kIsWeb ? 400.0 : double.infinity,
    child: ListView.builder(...)

Answered By – mm sh

Answer Checked By – Dawn Plyler (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *