chemical_structural_formula_viewer

Creator: coderz1093

Last updated:

0 purchases

chemical_structural_formula_viewer Image
chemical_structural_formula_viewer Images
Add to Cart

Description:

chemical structural formula viewer

chemical_structure_formula_viewer #
A flutter package to display chemical structure formulas.
Features #
It supports CDXML, CML.
Now, it's not beautiful, just a simple display.

Getting started #
Just add the package to your pubspec.yaml file:
dependencies:
chemical_structure_formula_viewer: ^0.0.1
copied to clipboard
Then run flutter pub get to install the package.
Usage #

class StructureViewer extends StatelessWidget {
StructurePage? page;
void load() {
var xml = '';// load your xml here
page = parseCml(xml);
// or
// page = parseCdxml(xml);
setState(() {});
}

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Chemical Structural Formula Viewer'),
),
body: StructureViewer(
page: page,
),
floatingActionButton: FloatingActionButton(onPressed: load),
);
}
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.