sa_deeplink_lego 1.0.1
sa_deeplink_lego: ^1.0.1 copied to clipboard
deep link dto template under simple architecture framework.
sa_deeplink_lego #
deep link dto template under simple architecture framework.
Installation #
- 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
- in terminal, enter the following command for add lego to project.
lego add sa_deeplink_lego
Usage #
- change all
New
in blueprint folder to your dto name. - change _new.dart to your dto file name.
- copy all in lib/blueprint/deeplink to your app folder.
- generate deeplink
String url = NewDeepLink.buildLink(
'https://deeplinktest.junestory.com',
New()
..docId = 'angel'
..s000 = 'sky');
print(url);
- 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.