xly 0.1.0 copy "xly: ^0.1.0" to clipboard
xly: ^0.1.0 copied to clipboard

A Test Flutter Package, DO NOT USE IT at present

example/lib/main.dart

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

import 'pages/page1.dart';
import 'pages/page2.dart';

void main() async {
  await MyApp.initialize(
    designSize: const Size(800, 600),
    routes: [
      MyRoute<Page1Controller>(
        path: Routes.page1,
        page: const Page1View(),
        controller: () => Page1Controller(),
      ),
      MyRoute<Page2Controller>(
        path: Routes.page2,
        page: const Page2View(),
        controller: () => Page2Controller(),
      ),
    ],
  );
}

class Routes {
  static const page1 = '/page1';
  static const page2 = '/page2';
}
1
likes
0
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

A Test Flutter Package, DO NOT USE IT at present

License

unknown (license)

Dependencies

flutter, flutter_screenutil, get, oktoast, window_manager

More

Packages that depend on xly