From e24e1704ee9aced8dbb2fec7c6502052ce59af4c Mon Sep 17 00:00:00 2001 From: dashu Date: Sun, 19 Sep 2021 15:29:04 +0700 Subject: [PATCH] support null-safety; --- lib/src/sunmi_printer.dart | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/sunmi_printer.dart b/lib/src/sunmi_printer.dart index a8df3fe..d7bed1b 100644 --- a/lib/src/sunmi_printer.dart +++ b/lib/src/sunmi_printer.dart @@ -83,7 +83,7 @@ class SunmiPrinter { /// A row contains up to 12 columns. A column has a width between 1 and 12. /// Total width of columns in one row must be equal to 12. static Future row({ - List cols, + required List cols, bool bold: false, bool underline: false, SunmiSize textSize: SunmiSize.md, diff --git a/pubspec.yaml b/pubspec.yaml index 4a4ca98..d117dea 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.2.1 homepage: https://github.com/andrey-ushakov/flutter_sunmi_printer environment: - sdk: ">=2.7.0 <3.0.0" + sdk: '>=2.12.0 <3.0.0' flutter: ">=1.10.0" dependencies: