xwidget 0.0.44 copy "xwidget: ^0.0.44" to clipboard
xwidget: ^0.0.44 copied to clipboard

A package for building dynamic UIs in Flutter using an expressive, XML based markup language.

example/lib/main.dart

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

import 'package:xwidget_example/xwidget/generated/controllers.g.dart';
import 'package:xwidget_example/xwidget/generated/icons.g.dart';
import 'package:xwidget_example/xwidget/generated/inflaters.g.dart';


void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  // load resources
  await Resources.instance.loadResources("resources");

  // register XWidget components
  registerXWidgetIcons();
  registerXWidgetInflaters();
  registerXWidgetControllers();

  runApp(const MyApp());
}

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

  // This widget is the root of your application.
  // See 'resources/fragments/my_app.xml' for the example fragment. You can break up your
  // UI into fragments and reuse them, iterate over them, use control tags on them, etc.
  @override
  Widget build(BuildContext context) {
    return XWidget.inflateFragment("my_app", Dependencies());
  }
}
15
likes
0
points
92
downloads

Publisher

verified publisherappfluent.us

Weekly Downloads

A package for building dynamic UIs in Flutter using an expressive, XML based markup language.

Repository (GitHub)
View/report issues

Topics

#dynamic #layout #ui #widget #xml

License

unknown (license)

Dependencies

analyzer, args, flutter, glob, intl, logger, markdown, path, petitparser, type_plus, xml, yaml

More

Packages that depend on xwidget