demoflu 0.6.0 demoflu: ^0.6.0 copied to clipboard
Flutter widget demo builder. Web application to display widget usage.
import 'package:demoflu/demoflu.dart';
import 'package:example/example1.dart';
import 'package:example/example2.dart';
import 'package:example/example3.dart';
import 'package:example/example4.dart';
import 'package:flutter/material.dart';
void main() {
runApp(DemoFluApp(
initialHeightWeight: .5,
title: 'Example Demo',
sectionsBuilder: (menuNotifier) {
return [
Section(name: 'Section', examples: [
Example(
name: 'Example 1',
content: Example1(),
codeFile: 'lib/example1.dart',
),
Example(
name: 'Example 2',
content: Example2(),
codeFile: 'lib/example2.dart',
consoleEnabled: true,
resizable: true),
Example(name: 'Example 3', content: Example3()),
Example(name: 'Example 4', content: Example4(menuNotifier))
])
];
}));
}