tdd_generator 0.0.1 tdd_generator: ^0.0.1 copied to clipboard
TDD folder structure generator. Create basic folders and some fundamental dart files for your flutter project
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add tdd_generator
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
tdd_generator: ^0.0.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:tdd_generator/data/dto/page/page_dto.dart';
import 'package:tdd_generator/data/mappers/post_mapper.dart';
import 'package:tdd_generator/data/network/urls.dart';
import 'package:tdd_generator/data/repositories/impl_auth_repo.dart';
import 'package:tdd_generator/data/services/post_service.dart';
import 'package:tdd_generator/domains/entities/post_entity.dart';
import 'package:tdd_generator/domains/exceptions/auth_exception.dart';
import 'package:tdd_generator/domains/repositories/auth_repo.dart';
import 'package:tdd_generator/presentation/di/injector.dart';
import 'package:tdd_generator/presentation/di/locator.dart';
import 'package:tdd_generator/presentation/ui/resources/app_colors.dart';
import 'package:tdd_generator/presentation/ui/resources/app_icons.dart';
import 'package:tdd_generator/presentation/ui/resources/app_images.dart';
import 'package:tdd_generator/presentation/ui/resources/dimens.dart';
import 'package:tdd_generator/presentation/ui/resources/state_status.dart';
import 'package:tdd_generator/presentation/ui/resources/styles.dart';
import 'package:tdd_generator/presentation/ui/screens/home/home_screen.dart';
import 'package:tdd_generator/presentation/ui/utils/ui_utils.dart';
import 'package:tdd_generator/presentation/ui/widgets/unfocus.dart';
import 'package:tdd_generator/presentation/ui/widgets/w_button.dart';