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

Flutter Markup Language (FML) is a cross platform markup language. This package retrieves, parses, interprets and renders fml pages to native Flutter without the need to compile.

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://fml.dev';
    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();
  }
}