sm_core 0.0.6 copy "sm_core: ^0.0.6" to clipboard
sm_core: ^0.0.6 copied to clipboard

A simple core library for flutter, providing some common utilities and classes.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:sm_core/sm_core.dart';

import 'app/routes/app_pages.dart';
import 'translations/app_translations.dart' as example;

void main() {
  runApp(
    ScreenUtilInit(
      designSize: designSize,
      child: GetMaterialApp(
        title: "Application",
        initialRoute: AppPages.initial,
        getPages: AppPages.routes,
        translationsKeys: example.AppTranslation.translations
            .mergeTranslations(), // 将本地化交给外部处, 将包中的本地化合并进来
        fallbackLocale: const Locale('en', 'US'),
        // locale: const Locale('zh', 'CN'),
        locale: const Locale('zh'),
        // locale: const Locale('en', 'US'),
        popGesture: true,
      ),
    ),
  );
}
2
likes
150
pub points
3%
popularity

Publisher

unverified uploader

A simple core library for flutter, providing some common utilities and classes.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_easyloading, flutter_screenutil, get, intl, loading_animation_widget, sm_get_plus, sm_logger, sm_models, sm_network, sm_widget, url_launcher

More

Packages that depend on sm_core