cosmos 0.1.1 copy "cosmos: ^0.1.1" to clipboard
cosmos: ^0.1.1 copied to clipboard

Thanks to this package, which brings together the challenging materials created as a result of the efforts of many developers, no application will make you struggle with lines of code!

example/lib/main.dart

import 'package:cosmos/cosmos.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Cosmos Tutorial',
      home: CosmosAlertTest(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: CosmosColor.hex("ffffff"),
      body: PopScope(
        
        child: Center(
          child: CosmosScroller(
            scrollDirection: Axis.vertical,
            children: [
              Row(
                mainAxisAlignment: MainAxisAlignment.center,
                crossAxisAlignment: CrossAxisAlignment.center,
                children: [
                  CosmosButtonIcon(
                    iconData: Icons.android,
                    text: "Android Alert",
                    onTap: () async {
                      CosmosAlert.showAnimatedDialog(
                        context,
                        "title",
                        "text",
                      );
                    },
                  ),
                ],
              ),
              CosmosButton(
                "IOS Alert",
                onTap: () {
                  CosmosAlert.showIOSStyleAlert(
                    context,
                    "title",
                    "text",
                  );
                },
              ),
              Padding(
                padding: const EdgeInsets.all(8.0),
                child: SizedBox(
                  width: 400,
                  child: CosmosTextBox(
                    "data",
                    onChanged: (p0) {
                      if (kDebugMode) {
                        print(p0);
                      }
                    },
                  ),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
11
likes
0
points
117
downloads

Publisher

verified publisherbybug.net

Weekly Downloads

Thanks to this package, which brings together the challenging materials created as a result of the efforts of many developers, no application will make you struggle with lines of code!

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

animated_bottom_navigation_bar, cached_network_image, dio, file_picker, firebase_auth, firebase_database, firebase_storage, flutter, jeadesing, shared_preferences

More

Packages that depend on cosmos