trainman_booking_sdk 0.0.5
trainman_booking_sdk: ^0.0.5 copied to clipboard
A train ticket booking SDK powered by trainman.
Trainman Booking Sdk #
Steps which need to follow while integrating this booking sdk in flutter #
-
While using this sdk first need to add plugin in pubspec.yaml within dependencies section
dependencies: flutter: sdk: flutter #trainman_booking_sdk: ^0.0.3#
you can also use by using commandflutter pub add trainman_booking_sdk
-
Create object of Booking SDK like:-
InitiateTmBookingSdk()
OR
void main() {runApp(const InitiateTmBookingSdk()); }
this will automatically invokes Trainman Booking Sdk .
-
After invocation of Booking sdk first there is a login screen. if you wants to continue using login It requires
client id
,client secret
,client_token
and all this credentials will be provided by Trainman side for BothDebug
andProd
Environment. -
Also for Android Make sure you have added Internet permission
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> </manifest>