fml 3.0.0+13 fml: ^3.0.0+13 copied to clipboard
Flutter Markup Language
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();
}
}