Nearby Connections enables advertising, discovery, and connections between nearby devices in a fully-offline peer-to-peer manner. Connections between devices are high-bandwidth, low-latency, and fully encrypted to enable fast, secure data transfers.
https://pub.dev/packages/flutter_nearby_connections
special thanks to this repo. which I have used as a base to start developing my chat app. https://github.com/VNAPNIC/flutter_nearby_connections