adobe_xd 2.0.1 adobe_xd: ^2.0.1 copied to clipboard
Generate code for building apps with Flutter based on your designs in Adobe XD with the “XD to Flutter” plugin. This package contains helper widgets used by the plugin.
import 'home.dart';
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'XD to Flutter example',
theme: ThemeData(
visualDensity: VisualDensity.adaptivePlatformDensity,
),
// Home is an artboard exported from Adobe XD
home: Home(
// This assigns a handler to a "Tap Callback Name" that was defined
// on the "Latest Adventures" card in the XD file:
onTapAdventure: () => print("You tapped the Latest Adventure."),
),
);
}
}