divine_card 0.1.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 67

Divine_Card - Flutter Package #

Divine_Card provides a beautiful card with Images,buttons and tagline(text) stack upon it with beautiful offset shadow.

How to install this package #

  • 1. Depend on it

    Add this to your flutter app's pubspec.yaml file:

    dependencies:
      divine_card: ^0.1.0
    
  • 2. Install it

    You can install packages from the command line:

    with Flutter:

    $ flutter pub get
    

    Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

How to use this package #

  • 1. Import it

    In your Dart code, import the package as mentioned below:

    import 'package:divine_card/divine_card.dart';
    
  • 2. Use It

   divineCard(
     height: 200.0,
     color: Color(0xFF00578D),
     shadowColor: Colors.black38,
     blurRadius: 12.0,
     img: AssetImage('images/Picture2.png'),
     imgHeight: 200.0,
     imgWidth: 200.0,
     buttonText: 'Your Text',
     buttonColor: Colors.black,
     buttonBackground: Colors.white,
     icon: Icons.arrow_forward_ios,
     iconColor: Colors.black,
     title: 'Your text goes',
     subtitle: 'Here..',
     fontSize: 18.0,
     fontColor: Colors.white,
 
             ),

About Me #

Hi! my name is Radhika Goswami.

I'm 16 year Girl who get's amazed by seeing apps and wondered if I can too make these and just because of Flutter now I can create APPs of my own !

Visit this Repo

Find me on #

YouTube

Twitter

Email: radhika.divinecoding@gmail.com

**Have a nice fluttery day! **

[0.1.0] - 19/05/2020 #

*README updated. *Example file added

example/lib/main.dart

import 'package:flutter/material.dart';

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
  TabController _tabController;
  @override
  void initState() {
    _tabController = TabController(vsync: this, length: 3);
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: AppBar(
        leading: Icon(
          Icons.menu,
          color: Color(0xFF4F3C75),
          size: 30,
        ),
        elevation: 0.0,
        backgroundColor: Colors.white,
      ),
      body: Padding(
        padding: const EdgeInsets.only(left: 20.0, right: 20.0),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: <Widget>[
            Text(
              'Try DivineCard -',
              style: TextStyle(
                  color: Color(0xFF4F3C75),
                  fontSize: 25.0,
                  fontWeight: FontWeight.bold),
            ),
            Text(
              'Today.',
              style: TextStyle(
                  color: Color(0xFF4F3C75),
                  fontSize: 25.0,
                  fontWeight: FontWeight.bold),
            ),
            SizedBox(
              height: 20.0,
            ),
            TabBar(
              labelColor: Color(0xFF4F3C75),
              controller: _tabController,
              unselectedLabelColor: Color(0xFF4F3C75),
              isScrollable: true,
              indicatorColor: Color(0xFF4F3C75),
              tabs: <Widget>[
                Tab(
                  text: "Full list",
                ),
                Tab(
                  text: "Popular",
                ),
                Tab(
                  text: "Rare cases",
                ),
              ],
            ),
            SizedBox(
              height: 10.0,
            ),
         /*   divineCard(
              height: 200.0,
              color: Color(0xFF00578D),
              shadowColor: Colors.black38,
              blurRadius: 12.0,
              img: AssetImage('images/Picture2.png'),
              imgHeight: 200.0,
              imgWidth: 200.0,
              buttonText: 'Your Text',
              buttonColor: Colors.black,
              buttonBackground: Colors.white,
              icon: Icons.arrow_forward_ios,
              iconColor: Colors.black,
              title: 'Your text goes',
              subtitle: 'Here..',
              fontSize: 18.0,
              fontColor: Colors.white,

            ),*/
          ],
        ),
      ),
    );
  }
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  divine_card: ^0.1.0

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Popularity:
Describes how popular the package is relative to other packages. [more]
38
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
67
Learn more about scoring.

We analyzed this package on Jul 8, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.14
  • Flutter: 1.17.5

Analysis suggestions

Package not compatible with SDK dart

Because:

  • divine_card that is a package requiring null.

Health suggestions

Format lib/src/divine_card.dart.

Run flutter format to format lib/src/divine_card.dart.

Format lib/src/divinecard.dart.

Run flutter format to format lib/src/divinecard.dart.

Maintenance issues and suggestions

Make sure dartdoc successfully runs on your package's source files. (-10 points)

exitCode: 255 stdout: Documenting divine_card... Initialized dartdoc with 19 libraries in 29.9 seconds Validating docs... no issues found Documented 0 public libraries in 4.8 seconds stderr: Unhandled exception: dartdoc could not find any libraries to document #0 Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:218:9)

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.12 1.14.13
meta 1.1.8 1.2.1
sky_engine 0.0.99
typed_data 1.1.6 1.2.0
vector_math 2.0.8
Dev dependencies
flutter_test