material_blink 0.2.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 62

Project in progress documentation will soon be available #

Note: Material Blink is not directly and/or indirectly associated/affiliated with Flutter or Google LLC.

[0.2.1] - TODO: Add release date. #

  • TODO: Describe initial testing .

example/lib/main.dart

import 'package:material_blink/material_blink.dart';

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    mxStatusBar();
    return MyHomePage().mxMaterialApp(title: 'zeeshan');
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: new AppBar(
        brightness: Brightness.light,
        centerTitle: true,
        backgroundColor: Colors.white,
      ),
      body: Padding(
          padding: const EdgeInsets.all(10.0),
          child: <Widget>[
            MxBlogTile(
              tileOnTap: () {},
              backSideBackgroundColor: Colors.grey[100],
              cardElevation: 5,
              imageHeight: 200,
              onTap: () {},
              backrounded: 10,
              shape: BorderRadius.circular(10).mxShapeBorder(),
              leading: "Z"
                  .textMaterialColorWhite()
                  .circleAvatar(backgroundColor: Colors.black, radius: 25),
              title: "Image Editor Pro".textMaterialColorBlack(),
              subTitle: "Goto PubDev Check".textMaterial(),
              trailing: '10 min ago'.textMaterial(),
              image:
                  "https://user-images.githubusercontent.com/55942632/77652902-fedd9980-6f94-11ea-96d5-d31657590893.png"
                      .decorationimageNetworkToCover(),
            ),
            MxBlogTile(
              rounded: 10,
              color: Color(0xFFff1632),
              tileOnTap: () {},
              backSideBackgroundColor: Colors.grey[100],
              cardElevation: 5,
              imageHeight: 200,
              onTap: () {},
              backrounded: 10,
              shape: BorderRadius.circular(10).mxShapeBorder(),
              leading: "Z"
                  .textMaterialColorWhite()
                  .circleAvatar(backgroundColor: Colors.white, radius: 25),
              title: "Image Editor Pro".textMaterialColorWhite(),
              subTitle:
                  "Goto PubDev Check".textMaterial(color: Colors.grey[50]),
              trailing: '10 min ago'.textMaterial(
                color: Colors.white,
              ),
              image:
                  "https://user-images.githubusercontent.com/45489310/78457255-b9d4f980-765d-11ea-8d17-78bb21297de6.png"
                      .decorationimageNetworkToCover(),
            ),
            MxBlogTile(
              color: Colors.orange,
              tileOnTap: () {},
              backSideBackgroundColor: Colors.grey[100],
              cardElevation: 5,
              imageHeight: 200,
              onTap: () {},
              backrounded: 10,
              shape: BorderRadius.circular(10).mxShapeBorder(),
              leading: "Z"
                  .textMaterial(
                      fontWeight: FontWeight.bold, color: Colors.black)
                  .circleAvatar(backgroundColor: Colors.white, radius: 25),
              title: "Image Editor Pro".textMaterialColorWhite(),
              subTitle:
                  "Goto PubDev Check".textMaterial(color: Colors.grey[50]),
              trailing: '10 min ago'.textMaterial(
                color: Colors.white,
              ),
              image:
                  "https://user-images.githubusercontent.com/55942632/77652902-fedd9980-6f94-11ea-96d5-d31657590893.png"
                      .decorationimageNetworkToCover(),
            ),
          ].mxListView()),
    );
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  material_blink: ^0.2.1

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.

3. Import it

Now in your Dart code, you can use:


import 'package:material_blink/material_blink.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
32
Health:
Code health derived from static analysis. [more]
86
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
62
Learn more about scoring.

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

  • Dart: 2.8.2
  • pana: 0.13.8-dev
  • Flutter: 1.17.1

Health issues and suggestions

Fix lib/src/AppBar/AppBar.dart. (-14.26 points)

Analysis of lib/src/AppBar/AppBar.dart reported 3 warnings:

line 60 col 5: Missing case clause for 'linux'.

line 60 col 5: Missing case clause for 'macOS'.

line 60 col 5: Missing case clause for 'windows'.

Format lib/material_blink.dart.

Run flutter format to format lib/material_blink.dart.

Format lib/src/Extension/Image.dart.

Run flutter format to format lib/src/Extension/Image.dart.

Format lib/src/Extension/Widget.dart.

Run flutter format to format lib/src/Extension/Widget.dart.

Format lib/src/Modules/BanTile.dart.

Run flutter format to format lib/src/Modules/BanTile.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.6.0 <3.0.0
animated_interpolation ^0.3.2 0.3.2
dart_style ^1.3.4 1.3.6
flutter 0.0.0
json_ast ^1.0.5 1.0.5
Transitive dependencies
_fe_analyzer_shared 3.0.0
analyzer 0.39.8
args 1.6.0
async 2.4.1
charcode 1.1.3
collection 1.14.12
convert 2.1.1
crypto 2.1.5
csslib 0.16.1
glob 1.2.0
grapheme_splitter 1.0.0
html 0.14.0+3
js 0.6.1+1
meta 1.1.8
node_interop 1.1.1
node_io 1.1.1
package_config 1.9.3
path 1.7.0
pedantic 1.9.0
pub_semver 1.4.4
sky_engine 0.0.99
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8
watcher 0.9.7+15
yaml 2.2.1
Dev dependencies
flutter_test