flutter_switch_device library

A Flutter widget that renders network switch devices with ports, fully programmatic — no SVG assets required.

Classes

Switch10P
Switch12P
Switch14P
Switch16P
Switch18P
Switch20P
Switch22P
Switch24P
Switch26P
Switch28P
Switch30PStacked
Switch32PStacked
Switch34PStacked
Switch36PStacked
Switch38PStacked
Switch40PStacked
Switch42PStacked
Switch44PStacked
Switch46PStacked
Switch48PStacked
Switch6P
Switch8P
SwitchDeviceTheme
Color theme for SwitchDeviceView.
SwitchDeviceView
Renders a network switch device with interactive ports.
SwitchFormat
Describes the physical layout of a network switch — port positions, dimensions, and stacking configuration.
SwitchIconPainter
Draws a compact switch icon for use as a small device indicator.
SwitchIconWidget
A compact switch device icon for use in topology views and device lists.

Enums

PortStatus
Status of a network port.

Functions

switchFormatForPortCount(int portCount, {int? validPorts}) SwitchFormat
Returns the appropriate SwitchFormat preset for the given port count.