app_back 0.0.3

  • Readme
  • Changelog
  • Example
  • Installing
  • 48

app_back #

The official Flutter library for Appback.

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

[0.0.1] - 08/03/2020 #

  • First version of AppBack.

[0.0.2] - 08/03/2020 #

  • Example added

[0.0.3] - 08/03/2020 #

  • Example updated


import 'package:app_back/app_back.dart';
import 'package:example/toggles_view.dart';
import 'package:example/translations_view.dart';
import 'package:flutter/material.dart';

void main() async {
    await AppBack.instance.configure("YOUR_API_KEY");

class AppBackExample extends StatefulWidget {
    _AppBackExampleState createState() => _AppBackExampleState();

class _AppBackExampleState extends State<AppBackExample> {
    int _currentIndex = 0;
    Widget build(BuildContext context) {
        return MaterialApp(
            home: Scaffold(
                body: _getCurrentScreen(),
                bottomNavigationBar: BottomNavigationBar(
                    items: <BottomNavigationBarItem>[
                            icon: Icon(Icons.translate),
                            title: Text('Translations'),
                            icon: Icon(Icons.power_settings_new),
                            title: Text('Toggles'),
                    currentIndex: _currentIndex,
                    onTap: (newIndex) => setState(() => _currentIndex = newIndex),
    Widget _getCurrentScreen() {
        switch(_currentIndex) {
            case 0:
                return TranslationsView();
            case 1:
                return TogglesView();
                return TranslationsView();

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  app_back: ^0.0.3

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:app_back/app_back.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on May 24, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.1
  • pana: 0.13.8-dev
  • Flutter: 1.17.0

Health suggestions

Format lib/app_back.dart.

Run flutter format to format lib/app_back.dart.

Format lib/dtos/toggle_dto.dart.

Run flutter format to format lib/dtos/toggle_dto.dart.

Format lib/dtos/toggle_parent_dto.dart.

Run flutter format to format lib/dtos/toggle_parent_dto.dart.

Fix additional 17 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/dtos/token_dto.dart (Run flutter format to format lib/dtos/token_dto.dart.)
  • lib/dtos/translation_dto.dart (Run flutter format to format lib/dtos/translation_dto.dart.)
  • lib/dtos/translation_parent_dto.dart (Run flutter format to format lib/dtos/translation_parent_dto.dart.)
  • lib/exceptions/app_back_exception.dart (Run flutter format to format lib/exceptions/app_back_exception.dart.)
  • lib/extensions/string_extensions.dart (Run flutter format to format lib/extensions/string_extensions.dart.)
  • lib/interactors/toggle_interactor.dart (Run flutter format to format lib/interactors/toggle_interactor.dart.)
  • lib/interactors/token_interactor.dart (Run flutter format to format lib/interactors/token_interactor.dart.)
  • lib/interactors/translation_interactor.dart (Run flutter format to format lib/interactors/translation_interactor.dart.)
  • lib/models/toggle.dart (Run flutter format to format lib/models/toggle.dart.)
  • lib/models/token.dart (Run flutter format to format lib/models/token.dart.)
  • lib/models/translation.dart (Run flutter format to format lib/models/translation.dart.)
  • lib/repository/auth/i_token_repository.dart (Run flutter format to format lib/repository/auth/i_token_repository.dart.)
  • lib/repository/auth/token_repository.dart (Run flutter format to format lib/repository/auth/token_repository.dart.)
  • lib/repository/toggle/i_toggle_repository.dart (Run flutter format to format lib/repository/toggle/i_toggle_repository.dart.)
  • lib/repository/toggle/toggle_repository.dart (Run flutter format to format lib/repository/toggle/toggle_repository.dart.)
  • lib/repository/translation/i_translation_repository.dart (Run flutter format to format lib/repository/translation/i_translation_repository.dart.)
  • lib/repository/translation/translation_repository.dart (Run flutter format to format lib/repository/translation/translation_repository.dart.)

Maintenance suggestions

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.6.0 <3.0.0
flutter 0.0.0
http ^0.12.0+4 0.12.1
json_annotation ^3.0.0 3.0.1
Transitive dependencies
charcode 1.1.3
collection 1.14.12
http_parser 3.1.4
meta 1.1.8
path 1.7.0
pedantic 1.9.0
sky_engine 0.0.99
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
build_runner ^1.7.3
json_serializable ^3.2.5