witsystem_core 0.0.7
witsystem_core: ^0.0.7 copied to clipboard
witsystem 核心包,提供核心功能
witsystem_core #
witsystem 核心包,提供核心功能
集成使用 #
1.导入 #
import 'package:witsystem_core/generated/l10n.dart' as witsystem_core ;
2.启用国际化文件 #
localizationsDelegates: const [ witsystem_core.S.delegate, GlobalMaterialLocalizations.delegate, GlobalCupertinoLocalizations.delegate, GlobalWidgetsLocalizations.delegate ],
3.初始化核心包 #
需要登录调用核心包登录的初始化 await WitsystemCore.intstance(appId: "appId", appSecret: "appSecret"); 不需要调用登录的初始化 await WitsystemCore.intstance(appId: "appId", appSecret: "appSecret",token:"token",rsaParseKey:" rsaParseKey");
4.核心包提供功能分为页面和api 页面主要是弹出框统一页面 #
核心使用文档 #
弹出页面的使用 #
sheet页面 #
showModalBottomSheet( context: context, isDismissible: true, barrierColor: Colors.black26, backgroundColor: const Color( 0x00000000), builder: (BuildContext context) { return WitsystemBottomSheet( sheetItem: sheetItem, onTap: (index) { _sheetClick(itemIndex, index); }, ); });
dialog页面 #
Widget widget=DialogCenterHintWidget();//弹出对话框中间提示 Widget widget= DialogCenterInputWidget();//弹出对话框中间输入
showDialog( context: context, barrierDismissible: true, builder: (BuildContext context) { return widget!; });
Getting Started #
This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.