Search code examples
flutterflutter-layoutflutter-cupertino

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 ?


Solution

  • 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),
            ),
          ),
        );
      }