TimWhiting / dart_pad_widget

A DartPad widget for Flutter Web
BSD 3-Clause "New" or "Revised" License
19 stars 3 forks source link

add support for solutions and test files #5

Closed caseycrogers closed 3 years ago

caseycrogers commented 3 years ago

As the title suggests, this allows users to specify content for dart pad's solutions and tests files.

I've also nuked HTML escaping and the file parser as all that code was specific to dartpad's code injector used by Dart Doc.

TimWhiting commented 3 years ago

Can you also add some docs for these parameters with a simple sample of what should be in code vs testCode, etc. You can probably just take an example from the dart-pad embedding docs. Additionally adding a test / solution / hint to the first sample in the example would be nice

caseycrogers commented 3 years ago

Can you also add some docs for these parameters with a simple sample of what should be in code vs testCode, etc. You can probably just take an example from the dart-pad embedding docs. Additionally adding a test / solution / hint to the first sample in the example would be nice

Working on this now.

caseycrogers commented 3 years ago

I figure out how solution cod is supposed to work and brought it back in. Also added a ton of documentation and a new example for the new functionality.

TimWhiting commented 3 years ago

Merged, documentation generated and published as 2.1.0