fml 3.0.0+12 copy "fml: ^3.0.0+12" to clipboard
fml: ^3.0.0+12 copied to clipboard

Flutter Markup Language

example/lib/main.dart

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {

    String example1 = 'https://test.appdaddy.co';
    String example2 = 'file://fmlpad';
    String example3 = 'file://example';

    var version = "3.0.0";

    // launch the FML engine
    return FmlEngine(
        domain: example1,
        title: "Flutter Markup Language V$version",
        version: version,
        multiApp: true,
        color: Colors.lightBlue,
        brightness: Brightness.dark,
        font: 'Roboto',
        transition: PageTransitions.platform,
        splashBackgroundColor: Colors.black).launch();
  }
}