---
title: "Comment by Shubham Hande on \"Unlocking the Secrets of Clean Architecture: Building Scalable Flutter Apps : Part-2\" | Hashnode"
description: "Hello Pranav, Your tutorial on clean architecture is excellent and easily to understand. Keep up the great work! I have a few questions regarding the &#39;DataS"
url: "https://hashnode.com/posts/flutter-clean-architecture-part-2/646c3362e07e1d2187d94988/comment/64f575e97ec0408c689b5958"
---

[Discussion](https://hashnode.com/posts/flutter-clean-architecture-part-2/646c3362e07e1d2187d94988)

Comment [Unlocking the Secrets of Clean Architecture: Building Scalable Flutter Apps : Part-2](https://hashnode.com/posts/flutter-clean-architecture-part-2/646c3362e07e1d2187d94988)

[Shubham Hande](https://hashnode.com/@Shubham099)

[Sep 4, 2023](https://hashnode.com/posts/flutter-clean-architecture-part-2/646c3362e07e1d2187d94988/comment/64f575e97ec0408c689b5958)

Hello Pranav,

Your tutorial on clean architecture is excellent and easily to understand. Keep up the great work! I have a few questions regarding the 'DataSource' class. In the 'SongRemoteDataSource,' , instead of directly using the Dio plugin to handle HTTP requests, could we use a service class 'core/services/dio\_service.dart' along with connectivity service and any other plugin service, By doing so, we can pass this service class to 'SongRemoteDataSource,' enabling us to handle various exceptions such as ServerException, NoInternetException, CacheException, and any other custom exceptions.

Please share your thoughts on this.

[Pranav Masekar](https://hashnode.com/@SUNGOD)

[Sep 4, 2023](https://hashnode.com/posts/flutter-clean-architecture-part-2/646c3362e07e1d2187d94988/comment/64f575e97ec0408c689b5958#reply-64f5ef34f6310e9375f96328)

[Shubham Hande](https://hashnode.com/@Shubham099)Thanks for the feedback. And yes absolutely using a wrapper service class of dio to handle exception is helpful and will help to reduce code duplication.
