teeth_anatomy 0.0.1 copy "teeth_anatomy: ^0.0.1" to clipboard
teeth_anatomy: ^0.0.1 copied to clipboard

teeth_anatomy is good package for show teeth anatomy

Teeth_anatomy #

Dental anatomy display package

Installation #

In the dependencies: section of your pubspec.yaml, add the following line:

dependencies:
  teeth_anatomy: <latest_version>

Usage #

import 'package:teeth_anatomy/teeth_custom_paint.dart';


class MyApp extends Stateless {


  Widget build(BuildContext context) {
    return TeethWidget(
      borderWith: 1,
      size: 500,
      textPaddingLeft: -10,
      textPaddingTop: 1,
      selectedColor: Colors.purpleAccent,
      unSelectedColor: Colors.white,
      borderColor: Colors.green,
      textStyle: const TextStyle(
          color: Colors.black, fontWeight: FontWeight.bold, fontSize: 12),
      onTap: (String id, selected) {
        if (selected) {
          tooth.add(TeethModel(
              id: id,
              selectedColor: Colors.primaries[Random().nextInt(16)]));
        } else {
          tooth.removeWhere((r) => r.id == id);
        }

        setState(() {});
      },
      teeth: tooth,
    );
  }

}





6
likes
0
points
49
downloads

Publisher

unverified uploader

Weekly Downloads

teeth_anatomy is good package for show teeth anatomy

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, cupertino_icons, flutter, flutter_svg, touchable

More

Packages that depend on teeth_anatomy