Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter: Cupertino ListTile ? (or How To Create iOS-Like-Settings Menu)

Do we have an easy way of doing that kind of menu below using CupertinoApp only ?

like image 966
Allan Stepps Avatar asked Jul 22 '19 12:07

Allan Stepps


Video Answer


2 Answers

Ok, so we can use a Scaffold inside a CupertinoPageScaffold like that and still use the material ListTile which look the same as Cupertino ones.

  @override
  Widget build(BuildContext context) {
    return CupertinoPageScaffold(
      navigationBar: CupertinoNavigationBar(
        middle: Text('My List'),
      ),
      child: SafeArea(
        child: Scaffold(
          body: _listView(context),
        ),
      ),
    );
  }
like image 197
Allan Stepps Avatar answered Sep 22 '22 10:09

Allan Stepps


You can try this at pub.dev:

cupertino_list_tile: ^0.2.0

https://pub.dev/packages/cupertino_list_tile

like image 43
M E S A B O Avatar answered Sep 23 '22 10:09

M E S A B O