velocity_x 0.1.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 95

VelocityX

VelocityX is a 100% free Flutter open-source minimalist UI Framework built with Flutter SDK to make Flutter development easier and more joyful than ever.

Inspired from Tailwindcss and SwiftUI. #

"Web".text.white.xl4.bold.center.makeCentered().box.roundedLg.red500.shadow2xl.make().whHalf(context).centered());

Quick start #

Read the Getting started page

Contributing #

VelocityX is 100% free and open source. We encourage and support an active, healthy community that accepts contributions from the public – including you. There are a couple of ways in which you can contribute to the growing community of VelocityX.

  • Pick up any issue marked with "good first issue"
  • Fix a bug
  • Write and improve some documentation. Documentation is very critical to us. We would appreciate help in adding multiple languages to our docs.
  • If you are a developer, feel free to check out the source and submit pull requests.
  • Dig into CONTRIBUTING.MD, which covers submitting bugs, requesting new features, preparing your code for a pull request, etc.
  • Please don't forget to like, follow, and star our repo!

Documentation #

Installation Guide

Social Media #

Twitter: https://twitter.com/imthepk

Facebook: https://www.facebook.com/imthepk

Linkedin: https://www.linkedin.com/in/imthepk

Instagram: https://www.instagram.com/codepur_ka_superhero/

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

Code and documentation Copyright 2020 Pawan Kumar. Code released under the [Apache License]. Docs released under Creative Commons.

[0.1.0] - March 20, 2020 #

  • initial release to public.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:velocity_x/velocity_x.dart';

void main() => runApp(MaterialApp(
      home: Demo(),
      debugShowCheckedModeBanner: false,
    ));

class Demo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Material(
      //   child: VelocityListDisc(
      //     ["Pawan", "Kumar", "is", "a", "Pro"],
      //     fontSize: 24,
      //     color: VelocityX.redColor500,
      //   ),
      // );
      child: VelocityDevice(
          mobile: "Mobile".text.white.xl4.semiBold.center.makeCentered().box.roundedLg.green500.shadow2xl.make().whHalf(context).centered(),
          web: "Web".text.white.xl4.bold.center.makeCentered().box.roundedLg.red500.shadow2xl.make().whHalf(context).centered()),
    );

    // return Material(
    //     child: Center(
    //   child: Container(
    //     height: 100,
    //     width: 100,
    //     decoration: BoxDecoration(
    //         color: Colors.purple.shade500,
    //         borderRadius: BorderRadius.circular(15),
    //         boxShadow: [
    //           BoxShadow(
    //             blurRadius: 3.0,
    //             color: Colors.black.withOpacity(0.5),
    //           )
    //         ]),
    //     child: Center(
    //       child: Text(
    //         "Hi",
    //         textScaleFactor: 3,
    //         style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
    //       ),
    //     ),
    //   ),
    // ));
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  velocity_x: ^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.

3. Import it

Now in your Dart code, you can use:


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

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

  • Dart: 2.8.4
  • pana: 0.13.9+1
  • Flutter: 1.17.3

Analysis suggestions

Package not compatible with SDK dart

because of import path [velocity_x]

Health suggestions

Format lib/src/flutter/card.dart.

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

Format lib/src/flutter/common/velocity_conditional.dart.

Run flutter format to format lib/src/flutter/common/velocity_conditional.dart.

Format lib/src/flutter/common/velocity_ensure_visible.dart.

Run flutter format to format lib/src/flutter/common/velocity_ensure_visible.dart.

Fix additional 11 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/flutter/common/velocity_responsive.dart (Run flutter format to format lib/src/flutter/common/velocity_responsive.dart.)
  • lib/src/flutter/common/velocity_zero.dart (Run flutter format to format lib/src/flutter/common/velocity_zero.dart.)
  • lib/src/flutter/container.dart (Run flutter format to format lib/src/flutter/container.dart.)
  • lib/src/flutter/gesture.dart (Run flutter format to format lib/src/flutter/gesture.dart.)
  • lib/src/flutter/list.dart (Run flutter format to format lib/src/flutter/list.dart.)
  • lib/src/flutter/padding.dart (Run flutter format to format lib/src/flutter/padding.dart.)
  • lib/src/flutter/scroll.dart (Run flutter format to format lib/src/flutter/scroll.dart.)
  • lib/src/flutter/selectable_text.dart (Run flutter format to format lib/src/flutter/selectable_text.dart.)
  • lib/src/flutter/text.dart (Run flutter format to format lib/src/flutter/text.dart.)
  • lib/src/flutter/widgets.dart (Run flutter format to format lib/src/flutter/widgets.dart.)
  • lib/src/velocity_x_extensions.dart (Run flutter format to format lib/src/velocity_x_extensions.dart.)

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.6.0 <3.0.0
auto_size_text ^2.1.0 2.1.0
flutter 0.0.0
Transitive dependencies
collection 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test