Tampilan iOS di Flutter dengan Cupertino

Tampilan iOS di Flutter dengan Cupertino

main.dart

import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';

void main() => runApp(
  new CupertinoApp(
    home: Home(),
    debugShowCheckedModeBanner: false,
));

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return CupertinoPageScaffold(
      resizeToAvoidBottomInset: true,
      navigationBar: new CupertinoNavigationBar(
        leading: Icon(Icons.bookmark),
        middle: Text("ioS Style"),
      ),
      child: Center(child: Text("Halo")),
    );
  }
}

Flutter Developer