Getting Started

Android

compileSdkVersion 33
minSdkVersion 19

IOS

Flutter

import 'package:flutter/material.dart';
import 'package:flutter_yfree/YFree.dart';

void main() {
  yRunApp(FirstPage(), Colors.blue, onYConfig: () {
    YConfig.appName = "YFreeApp";
  });
}

class FirstPage extends YPage {
  @override
  void yOnCreate() {
    yToast("Hello YFree");
  }

  @override
  Widget yBuild(BuildContext context) {
    return Center(
      child: Text("This is the first page."),
    );
  }
}