almohad_design_system 0.1.5 copy "almohad_design_system: ^0.1.5" to clipboard
almohad_design_system: ^0.1.5 copied to clipboard

A personalized design system for Flutter applications, providing reusable UI components like buttons, cards, chat bubbles, and more.

example/lib/main.dart

import 'package:almohad_design_system/almohad_design_system.dart';
import 'package:example/buttons_example.dart';
import 'package:example/dummy_containers.dart';
import 'package:example/dummy_texts.dart';
import 'package:example/parallax_images.dart';
import 'package:flutter/material.dart';

import 'chat_messages_sample.dart';
import 'dummY_audio_player.dart';
import 'expanded_test.dart';

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,

        title: Text(widget.title),
      ),
      body: SingleChildScrollView(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            ListTile(
              onTap: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                    builder: (context) => const ParallaxImagesExample(),
                  ),
                );
              },
              title: Text('Parallax Images'),
              trailing: const Icon(Icons.arrow_forward_ios),
            ),
            ListTile(
              onTap: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(builder: (context) => const ExpandedTest()),
                );
              },
              title: Text('Expanded Content Example'),
              trailing: const Icon(Icons.arrow_forward_ios),
              subtitle: Text('This is a simple example of an expanded widget.'),
            ),
            ListTile(
              onTap: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                    builder: (context) => const ButtonsExample(),
                  ),
                );
              },
              title: Text('Buttons Example'),
              trailing: const Icon(Icons.arrow_forward_ios),
            ),
            DesignSystem.liveTime(child: Text('data')),
            ListTile(
              onTap: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(builder: (context) => const DummyTexts()),
                );
              },
              title: Text('Dummy Texts Example'),
              trailing: const Icon(Icons.arrow_forward_ios),
              subtitle: Text('This is a simple example of a text widget.'),
            ),
            ListTile(
              onTap: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                    builder: (context) => const DummyAudioPlayer(),
                  ),
                );
              },
              title: Text('Audio Player Example'),
              trailing: const Icon(Icons.arrow_forward_ios),
              subtitle: Text(
                'This is a simple example of an audio player widget.',
              ),
            ),
            ListTile(
              onTap: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                    builder: (context) => const DummyConversation(),
                  ),
                );
              },
              title: Text('Chat Bubble Example'),
              trailing: const Icon(Icons.arrow_forward_ios),
              subtitle: Text(
                'This is a simple example of a chat bubble widget.',
              ),
            ),
            const SizedBox(height: 20),
            ListTile(
              onTap: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                    builder: (context) => const DummyContainers(),
                  ),
                );
              },
              title: Text('Dummy Texts Example'),
              trailing: const Icon(Icons.arrow_forward_ios),
              subtitle: Text('This is a simple example of a text widget.'),
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ),
    );
  }
}
1
likes
0
points
110
downloads

Publisher

unverified uploader

Weekly Downloads

A personalized design system for Flutter applications, providing reusable UI components like buttons, cards, chat bubbles, and more.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

another_flushbar, audioplayers, cached_network_image, flutter, flutter_animate, flutter_gutter, flutter_riverpod, flutter_svg, iconsax, intl, lottie, map_launcher, url_launcher, wolt_modal_sheet

More

Packages that depend on almohad_design_system