celest 0.4.2 copy "celest: ^0.4.2" to clipboard
celest: ^0.4.2 copied to clipboard

The Flutter cloud platform. Celest enables you to build your entire backend in Dart.

example/lib/main.dart

import 'package:celest_backend/client.dart';
import 'package:celest_backend/models/person.dart';
import 'package:flutter/material.dart';

void main() {
  celest.init();
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Hello Celest'),
        ),
        body: Center(
          child: FutureBuilder(
            future: celest.functions.greeting.sayHello(
              person: const Person(name: 'Celest'),
            ),
            builder: (_, snapshot) => switch (snapshot) {
              AsyncSnapshot(:final data?) => Text(data),
              AsyncSnapshot(:final error?) =>
                Text('${error.runtimeType}: $error'),
              _ => const CircularProgressIndicator(),
            },
          ),
        ),
      ),
    );
  }
}
13
likes
140
points
1.11k
downloads

Publisher

verified publishercelest.dev

Weekly Downloads

The Flutter cloud platform. Celest enables you to build your entire backend in Dart.

Homepage
Repository (GitHub)
Contributing

Documentation

API reference

License

BSD-2-Clause-Patent (license)

Dependencies

async, celest_auth, celest_core, chunked_stream, collection, http, http_parser, logging, meta, shelf, shelf_router, shelf_web_socket, stream_channel, web_socket_channel

More

Packages that depend on celest