12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- import 'package:flutter/material.dart';
- import 'package:kmpdfkit_demo/widgets/constains.dart';
- import 'package:kmpdfkit_demo/widgets/extension/color_extension.dart';
- ///default configuration options
- Map<String, dynamic> applyNormalConfiguration() => {
- 'scrollDirection' : ScrollDirection.vertical,
- 'isDoublePage' : false,
- 'isContinueMode' : true,
- 'isCoverPageMode' : false,
- 'isCropPageMode' : false,
- 'readBackgroundColor' : Colors.white.toHex(),
- 'annotAttribute' : {
- 'highlight' : {
- 'color' : Colors.red.toHex(),
- 'alpha' : 255
- },
- 'strikeout' : {
- 'color' : Colors.green.toHex(),
- 'alpha' : 255
- },
- 'underline' : {
- 'color' : Colors.blue.toHex(),
- 'alpha' : 255
- },
- 'squiggly' : {
- 'color' : Colors.purple.toHex(),
- 'alpha' : 255
- },
- 'ink' :{
- 'color' : Colors.pink.toHex(),
- 'alpha' : 255,
- 'borderWidth' : 10
- },
- 'shape' : {
- 'borderColor' : Colors.red.toHex(),
- 'borderColorAlpha' : 255,
- 'fillColor' : Colors.red.toHex(),
- 'fillColorAlpha' : 0,
- 'borderWidth' : 2
- },
- 'freetext' : {
- 'fontBold' : false,
- 'fontItalic' : false,
- 'textColor' : Colors.black.toHex(),
- 'textColorAlpha' : 255,
- 'fontSize' : 40,
- 'fontType' : FontType.helvetica.name
- }
- }
- };
|