This PR allows the creation of a custom OutlinedBorder, which can be passed to your component through the Mix API
Changes
OutlinedBorderDto become an abstract class
Add a method call to ShapeBorderUtility
Add the abstract class CustomOutlinedBorder
Review Checklist
[ ] Testing: Have you tested your changes, including unit tests and integration tests for affected code?
[ ] Breaking Changes: Does this change introduce breaking changes affecting existing code or users?
[ ] Documentation Updates: Are all relevant documentation files (e.g. README, API docs) updated to reflect the changes in this PR?
[ ] Website Updates: Is the website containing the updates you make on documentation?
Additional Information (optional)
To create your custom OutlinedBorder, you should create a Dto for your border, look at the example:
@MixableDto()
final class MyCustomBorderDto extends OutlinedBorderDto<MyCustomBorder>
with _$MyCustomBorderDto {
const MyCustomBorderDto({
// ... The params
});
}
To complete the creation, you need to create and define your Border, extending the CustomOutlinedBorder
class MyCustomBorder extends CustomOutlinedBorder<MyCustomBorderDto> {
// implement the border...
}
Description
Changes
abstract
classShapeBorderUtility
abstract class CustomOutlinedBorder
Review Checklist
Additional Information (optional)
To create your custom OutlinedBorder, you should create a Dto for your border, look at the example:
To complete the creation, you need to create and define your Border, extending the CustomOutlinedBorder