패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.0.6

altogic

Altogic용 Dart 클라이언트입니다. Altogic은 사람과 기업이 확장 가능한 애플리케이션을 설계하고 배포하며 관리할 수 있도록 해주는 백엔드 애플리케이션 개발 및 실행 플랫폼입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
125
좋아요
10
Pub 점수
140

패키지 설치

flutter pub add altogic

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Altogic은 Altogic 백엔드 플랫폼용 Dart 클라이언트로, 개발자가 통합된 백엔드 서비스를 갖춘 확장 가능한 애플리케이션을 구축하고 배포하며 관리할 수 있도록 해줍니다. Flutter 앱과 Altogic의 클라우드 인프라스트럭처 간에 원활한 연결을 제공하며, 실시간 데이터 동기화, 인증, 파일 저장, 데이터베이스 작업 등의 기능을 제공합니다. 이 클라이언트는 Android, iOS, Web, macOS, Windows, Linux 등 모든 주요 플랫폼을 지원하여 크로스플랫폼 앱 개발에 이상적입니다. 단순성과 성능에 초점을 맞추어, Altogic는 백엔드 복잡성을 줄이고 애플리케이션 배달 속도를 가속화합니다.

사용 사례

  • 실시간 앱 개발
  • 크로스 플랫폼 백엔드 통합
  • 사용자 인증 관리
  • 클라우드 기반 데이터 저장
  • 확장 가능한 애플리케이션 배포
  • 파일 업로드 및 검색

주요 기능

  • 실시간 데이터 동기화
  • 내장 인증
  • 클라우드 데이터베이스 접근
  • 파일 저장 서비스
  • 플랫폼에 관계없는 SDK
  • RESTful API 호환성

적합한 대상

  • 풀스택 플러터 개발자
  • MVP를 구축하는 스타트업
  • 빠른 백엔드 설정이 필요한 팀
  • 실시간 업데이트가 필요한 앱
  • 다중 플랫폼 요구 사항을 가진 프로젝트

고려 사항

  • Altogic 계정이 필요합니다
  • 클라우드 인프라스트럭처에 의존
  • 백엔드 코드 없이 제한된 사용자 정의
  • 신규 사용자를 위한 학습 곡선
  • 실시간 기능을 위한 네트워크 종속성

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Altogic Dart

Altogic Dart is a Dart client for the Altogic Client Library. It provides access to all the functionality of the Altogic Client Library.

This package includes some Flutter dependencies in addition to the altogic_dart package.

Quick start

This altogic client library guide will show you how to use the key modules of the client library to execute commands in your backend app. For more in-depth coverage, see the Client API reference.

Flutter Guides / Examples

Additional Functionalities

Default Local Storage

AltogicClient needs a local storage implementation to hold sessions and user information. This package provides a default local storage implementation that uses the shared_preferences package.

import 'package:altogic_dart_flutter/altogic_dart_flutter.dart';

final altogic = createClient(
    'your env url',
    'your client key'
);

Auto Open Sign In With Provider URLs

AltogicClient can open sign-in with provider URLs automatically. You can use the AuthManager.signInWithProvider method to open sign-in with provider URLs directly.

altogic.auth.signInWithProvider('google');

Handle Redirect URLs

In many authentication flows/operations, Altogic redirects your user to a specific URL.

For example, oAuth2 flow after the user signed in with the provider sign-in page, Altogic redirects the user to the redirect URL you specified in the Altogic Designer > App Settings > Authentication.

You can handle redirect URLs on websites by getting which path opens the site.

You can use deep linking in mobile or desktop applications to open the application from a redirect URL.

Deep Linking Configuration
AltogicState

If you use "AltogicState" at the root of the application, the "AltogicState" will be "mounted" throughout the application lifecycle. Thus, we can listen to the deep links when the application is resumed or launched with a deep link.

When the application opens by a deep link, AltogicState cannot synchronously inform you about the deep link. Instead, you can override methods to be called when a deep link opens the application.

Available methods to override: onEmailVerificationLink, onMagicLink, onOauthProviderLink, onEmailChangeLink, onPasswordResetLink.

AltogicState provides a getter named navigatorObserver to observe navigation events. You can use BuildContext as the parameter for deep linking methods. If you use navigatorObserver, e.g., onMagicLink called with context; otherwise, BuildContext will be null for these methods.


class AltogicAuthExampleApp extends StatefulWidget {
  const AltogicAuthExampleApp({Key? key}) : super(key: key);

  @override
  State<AltogicAuthExampleApp> createState() => _AltogicAuthExampleAppState();
}

class _AltogicAuthExampleAppState extends AltogicState<AltogicAuthExampleApp> {
  @override
  void onEmailVerificationLink(BuildContext? context, EmailVerificationRedirect redirect) {
    // Handle email verification link
  }

  @override
  void onMagicLink(BuildContext? context, MagicLinkRedirect redirect) {
    // Handle magic link
  }

  @override
  void onPasswordResetLink(BuildContext? context, PasswordResetRedirect redirect) {
    // Handle password reset link
  }

  @override
  void onEmailChangeLink(BuildContext? context, ChangeEmailRedirect redirect) {
    // Handle email change link
  }

  @override
  void onOauthProviderLink(BuildContext? context, OauthRedirect redirect) {
    // Handle oauth provider link
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      navigatorObservers: [navigatorObserver],
      // ...
    );
  }
}

When Application Not Running

Generally, in the first run of the application, many developers show a splash screen. In this case, the application is launched with a deep link, AuthState.onX methods are triggered, and maybe the user is navigated to another page from the triggered method. Also, the splash screen will try to navigate to another page. This case causes a conflict.

To avoid this conflict, you can use AltogicState.applicationInitialRedirect static getter:

Future<void> init() async {
  // Check if the application was launched with a deep link
  var launchedRedirect = await AltogicState.applicationInitialRedirect;
  if (launchedRedirect != null) {
    return;
  }
  // navigate now
}

You can use the AltogicState.applicationInitialRedirect getter instead of the AltogicState.onX methods. But you have to listen to ApplicationLifecycle events manually to handle deep links.

Restore Auth Session

AltogicClient can restore the session from local storage. To do this, you can use the AltogicClient.restoreAuthSession method.

If the application is not running and launched with a deep link, the restoreAuthSession method checks if the application launched with a deep-link. If the application opens with a deep-link, the restoreAuthSession method will not restore the session from local storage. (Necessary to avoid conflicts)

await altogic.restoreAuthSession();

Learn more

You can use the following resources to learn more and get help

Bugs Report

Think you’ve found a bug? Please, send us an email [support@altogic.com](mailto:support@altogic.com) or open issue on GitHub.

altogic_dart package repository
altogic package repository

Support / Feedback

For issues with, questions about, feedback for the client library, or want to see a new feature please, send us an email [support@altogic.com](mailto:support@altogic.com) or reach out to our community forums

카테고리

의존성

의존성 목록 4 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.