structorize 0.0.1+2 copy "structorize: ^0.0.1+2" to clipboard
structorize: ^0.0.1+2 copied to clipboard

With just a few commands I create all The structure needed to get your Flutter project ready to run.

example/lib/main.dart

// This is code generated via package:structorize/start.dart
 
import 'package:example/i18n/i18n.dart';
import 'package:example/src/app.dart';   
import 'package:example/src/infrastructure/core/http_client/api_endpoints.dart'; 
import 'package:example/src/infrastructure/core/http_client/dio_builder.dart'; 
import 'package:example/src/injection/config.dart'; 
import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';  


Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized(); 
   
  await I18n.initialize(
      defaultLocale: Locale('en'),  
      supportLocales: [Locale('en'), Locale('pt')]  
  );
  
  var shared = await SharedPreferences.getInstance(); 

  final dio = DioBuilder()
    ..setBaseUrl(ApiEndpoints.apiBaseUrl) 
    ..setTimeout(const Duration(seconds: 20));

  Config.initialize(shared, dio.build());
 
  runApp(App());
}
1
likes
140
pub points
7%
popularity

Publisher

verified publisheredvaldomartins.dev

With just a few commands I create all The structure needed to get your Flutter project ready to run.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

colorize, path

More

Packages that depend on structorize