sa_deeplink_lego 1.0.1 copy "sa_deeplink_lego: ^1.0.1" to clipboard
sa_deeplink_lego: ^1.0.1 copied to clipboard

deep link dto template under simple architecture framework.

lego project pub package

sa_deeplink_lego #

deep link dto template under simple architecture framework.

Installation #

  1. open terminal in the lego project root directory, enter the following command for install cli. and create a new lego project if you don't have one.
flutter pub global activate lego_cli
lego create
  1. in terminal, enter the following command for add lego to project.
lego add sa_deeplink_lego

Usage #

  1. change all New in blueprint folder to your dto name.
  2. change _new.dart to your dto file name.
  3. copy all in lib/blueprint/deeplink to your app folder.
  4. generate deeplink
String url = NewDeepLink.buildLink(
   'https://deeplinktest.junestory.com',
   New()
     ..docId = 'angel'
     ..s000 = 'sky');
print(url);
  1. when you click the link on the phone, the app will open and lib/app/frontend/listener/deeplink/[your dto name].dart ReceiveNewDeepLinkData function will be called with the dto data.