dough 0.0.5
dough: ^0.0.5 copied to clipboard
This library provides widgets that can be used to create a smooshy user interface.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:dough/dough.dart';
import 'routes.dart';
void main() {
runApp(AppRoot());
}
class AppRoot extends StatelessWidget {
@override
Widget build(BuildContext context) {
final app = MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
routes: Routes.define(),
initialRoute: Routes.kHome,
);
// Optionally, apply your own default dough recipe to your
// whole app if you don't like the built in recipe. All dough
// widgets will default to using these settings.
return DoughRecipe(
data: DoughRecipeData(
adhesion: 14,
),
child: app,
);
}
}