cosmos 0.3.3 copy "cosmos: ^0.3.3" to clipboard
cosmos: ^0.3.3 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/material.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Cosmos Example App',
      home: Scaffold(
        backgroundColor: Colors.black,
        body: CosmosSideMenu.builder(
          sideMenu: CosmosSideMenu.sideMenu(
            backgroundColor: const Color.fromARGB(255, 23, 23, 23),
            children: [
              const SizedBox(height: 20),
              CosmosButton.borderButton(
                margin: const EdgeInsets.symmetric(horizontal: 10),
                text: "Back",
                width: double.infinity,
                onTap: () {
                  CosmosSideMenu.closeSideMenu();
                },
              ),
              CosmosButton.borderButton(
                margin: const EdgeInsets.symmetric(horizontal: 10),
                text: "Border Button",
                width: double.infinity,
                onTap: () {},
              ),
              CosmosButton.borderButton(
                margin: const EdgeInsets.symmetric(horizontal: 10),
                text: "Border Button",
                width: double.infinity,
                onTap: () {},
              ),
              CosmosButton.borderButton(
                margin: const EdgeInsets.symmetric(horizontal: 10),
                text: "Border Button",
                width: double.infinity,
                onTap: () {},
              ),
              CosmosButton.borderButton(
                margin: const EdgeInsets.symmetric(horizontal: 10),
                text: "Border Button",
                width: double.infinity,
                onTap: () {},
              ),
              CosmosButton.borderButton(
                margin: const EdgeInsets.symmetric(horizontal: 10),
                text: "Border Button",
                width: double.infinity,
                onTap: () {},
              ),
              const SizedBox(height: 20),
            ],
          ),
          home: CosmosBody(
            scrollable: true,
            scrollDirection: Axis.vertical,
            children: [
              CosmosTopBar(
                logo: const Text(
                  "Cosmos!",
                  style: TextStyle(
                    fontWeight: FontWeight.bold,
                    fontSize: 20,
                    color: Colors.white,
                  ),
                ),
                leftIcon: Icons.menu,
                rightIcon: Icons.whatshot,
                children: [
                  CosmosButton.button(
                    text: "Classic Button",
                    onTap: () {},
                  ),
                  CosmosButton.borderButton(
                    text: "Border Button",
                    onTap: () {},
                  ),
                  Container(
                    margin: const EdgeInsets.symmetric(horizontal: 10),
                    width: 2,
                    height: 20,
                    color: Colors.white,
                  ),
                  CosmosButton.iconButton(
                    icon: Icons.link,
                    uri: "https://bybug.net",
                  ),
                  CosmosButton.iconButton(
                    icon: Icons.menu,
                    onTap: () {
                      CosmosSideMenu.openSideMenu();
                    },
                  ),
                  CosmosButton.iconButton(
                    icon: Icons.person,
                    uri: "https://bybug.net",
                  ),
                ],
              ),
            ],
          ),
        ),
      ),
    );
  }
}
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, carousel_slider, clipboard, dio, file_picker, firebase_auth, firebase_database, firebase_storage, flutter, flutter_datetime_picker_plus, image_picker, marquee, qr_flutter, shared_preferences, url_launcher

More

Packages that depend on cosmos