fml 3.0.0+16 fml: ^3.0.0+16 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.
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';
//String example4 = 'https://pad.fml.dev';
var version = "3.0.0";
// launch the FML engine
return FmlEngine(
ApplicationType.multi,
domain: example1,
title: "Flutter Markup Language V$version",
version: version,
color: Colors.lightBlue,
brightness: Brightness.light,
font: 'Roboto',
transition: PageTransitions.platform)
.launch();
}
}