Giter Club home page Giter Club logo

flutter_signaturewidget's Introduction

Hi, I'm Anh Nguyen!

A passionate mobile engineer in Ho Chi Minh City, Vietnam. With several years on the mobile software developments, I have been building many mobile applications from start up to big organization (such as bank) which gains a lot of success with products.

GitHub Kzjn10

Stats

Kzjn10's User Stats


Top languages

kzjn10 :: Top Langs

flutter_signaturewidget's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flutter_signaturewidget's Issues

Offset util error

You have 2 errors in your file in version 2.0.0 compared to 1.0.0. This is a modified dart file:

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

/// Utils class using parse list offset
class OffsetUtil {
/// Convert List offset to String
static String convertListOffsetToString(List<Offset?>? signatureValue) {
final result = StringBuffer();

if (signatureValue?.isEmpty??false) {
  return '';
}

for (final item in signatureValue!) {
  if (result.toString().trim().length != 0) {
    result.write('|');
  }

  if (item!=null) {
    result.write('${item.dx},${item.dy}');
  } else {
    result.write('null');
  }
}

return result.toString();

}

/// Convert List offset (String format) to List data
static List<Offset?> covertStringToListOffset(String value) {
final result = <Offset?>[];

if (value.trim().length == 0) {
  return result;
}

final offsetList = value.split('|');
if (offsetList.length != 0) {
  for (final item in offsetList) {
    if (item!= 'null') {
      final temp = item.split(',');
      if (temp.length == 2) {
        final offset = Offset(double.parse(temp[0]), double.parse(temp[1]));
        result.add(offset);
      }
    } else
      result.add(null);
  }
}

return result;

}
}
`

nullsafety

Is this package going to be upadated to null safety ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.