示例#1
0
 public static ImageConfiguration createLocalImageConfiguration(BuildContext context, Size size = null)
 {
     return(new ImageConfiguration(
                DefaultAssetBundle.of(context: context),
                MediaQuery.of(context: context, true)?.devicePixelRatio ?? 1.0f,
                Localizations.localeOf(context: context, true),
                size: size,
                platform: Application.platform
                ));
 }
 static WidgetsLocalizations of(BuildContext context)
 {
     return(Localizations.of <WidgetsLocalizations>(context, typeof(WidgetsLocalizations)));
 }