Fix Tuple2 type

pull/13/head
singerdmx 4 years ago
parent 76df253f1f
commit 11dbdedb4e
  1. 8
      lib/flutter_quill.dart
  2. 2
      lib/widgets/default_styles.dart
  3. 13
      test/flutter_quill_test.dart

@ -1,7 +1 @@
library flutter_quill;
/// A Calculator.
class Calculator {
/// Returns [value] plus 1.
int addOne(int value) => value + 1;
}
library flutter_quill;

@ -76,7 +76,7 @@ class DefaultStyles {
fontSize: 16.0,
height: 1.3,
);
Tuple2 baseSpacing = Tuple2(6.0, 10);
Tuple2<double, double> baseSpacing = Tuple2(6.0, 10);
String fontFamily;
switch (themeData.platform) {
case TargetPlatform.iOS:

@ -1,13 +0,0 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_quill/flutter_quill.dart';
void main() {
test('adds one to input values', () {
final calculator = Calculator();
expect(calculator.addOne(2), 3);
expect(calculator.addOne(-7), -6);
expect(calculator.addOne(0), 1);
expect(() => calculator.addOne(null), throwsNoSuchMethodError);
});
}
Loading…
Cancel
Save