INNER CODE UNIT · Dart

_MyHomePageState

GetDutchie/brick · example_rest/lib/main.dart:32

class _MyHomePageState extends State<MyHomePage> {
  var migrated = false;
  @override
  void initState() {
    // be sure to run `dart server.dart` before using this example
    // on android, try 10.0.2.2
    Repository.configure('http://localhost:8080');
    // Note that subsequent boots of the app will use cached data
    // To clear this, wipe data on android or tap-press on iOS and delete the app
    Repository().initialize().then((_) => setState(() => migrated = true));
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…