getx_scaffold 0.0.4 copy "getx_scaffold: ^0.0.4" to clipboard
getx_scaffold: ^0.0.4 copied to clipboard

GetX Scaffold is a comprehensive rapid development template built on the GetX framework and several commonly used plugins. It significantly boosts development efficiency, reduces redundant code, and l [...]

example/lib/main.dart

import 'package:example/common/langs/index.dart';
import 'package:example/pages/home/index.dart';
import 'package:example/common/styles/theme.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter_native_splash/flutter_native_splash.dart';
import 'package:getx_scaffold/getx_scaffold.dart';

/**
 * @author: Kxmrg
 * @github: https://github.com/Kxmrg
 * @version: 1.0.0
 * @copyright: Copyright © 2023-2024 Kxmrg
 * @license: MIT License
 * @date: 2024-07-03
 * @description: 
 */

/// Main
void main() async {
  WidgetsBinding widgetsBinding = await init(
    isDebug: kDebugMode,
    logTag: 'GetxScaffold',
    supportedLocales: TranslationLibrary.supportedLocales,
  );
  FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
  runApp(
    GetxApp(
      // 设计稿尺寸 单位:dp
      designSize: const Size(390, 844),
      // Getx Log
      enableLog: kDebugMode,
      // 默认的跳转动画
      defaultTransition: Transition.rightToLeft,
      // 主题模式
      themeMode: GlobalService.to.themeMode,
      // 主题
      theme: AppTheme.light,
      // Dark主题
      darkTheme: AppTheme.dark,
      // 国际化配置
      locale: GlobalService.to.locale,
      translations: TranslationLibrary(),
      fallbackLocale: TranslationLibrary.fallbackLocale,
      supportedLocales: TranslationLibrary.supportedLocales,
      localizationsDelegates: TranslationLibrary.localizationsDelegates,
      // AppTitle
      title: 'GetxScaffold',
      // 首页
      home: const HomePage(),
    ),
  );
}
20
likes
0
pub points
75%
popularity

Publisher

unverified uploader

GetX Scaffold is a comprehensive rapid development template built on the GetX framework and several commonly used plugins. It significantly boosts development efficiency, reduces redundant code, and lowers development costs. It's recommended to explore all functionalities through the example projects.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

badges, connectivity_plus, convert, crypto, decimal, device_info_plus, dio, encrypt, event_bus, extended_image, flutter, flutter_easyloading, flutter_screenutil, flutter_spinkit, flutter_svg, get, intl, lottie, modal_bottom_sheet, package_info_plus, rational, shared_preferences, url_launcher

More

Packages that depend on getx_scaffold