morphable_shape 1.3.5 morphable_shape: ^1.3.5 copied to clipboard
A Flutter package for creating various shapes that are responsive and can morph betweem each other.
import 'package:dimension/dimension.dart';
import 'package:flutter/material.dart';
import 'edit_shape_page.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
print(Dimension.lerp(0.toPercentLength, 100.toPercentLength, 0.5));
return MaterialApp(
title: 'Flutter Shape Editor',
theme: ThemeData(
primarySwatch: Colors.amber,
primaryColor: Colors.amber,
primaryColorBrightness: Brightness.dark,
sliderTheme: SliderTheme.of(context).copyWith(
inactiveTrackColor: Colors.black.withOpacity(0.2),
thumbColor: Colors.amber,
activeTrackColor: Colors.amber,
overlayColor: Colors.amber.withOpacity(0.2),
),
),
home: EditShapePage(),
);
}
}