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

retracted

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

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:hello_celest/client.dart';

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

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

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

Publisher

verified publishercelest.dev

Weekly Downloads

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

async, celest_core, chunked_stream, meta, shelf, shelf_router

More

Packages that depend on celest