|
...
|
...
|
@@ -399,6 +399,26 @@ class _MyMakeMarkingPageState extends State<MyMakeMarkingPage> { |
|
|
|
customerMakingProvider.youhui = couponList[
|
|
|
|
customerMakingProvider.couponSelectIndex];
|
|
|
|
});
|
|
|
|
|
|
|
|
// var cursorPos = customerMakingProvider
|
|
|
|
// .controller.selection.base.offset; //获取到光标的在字符串的位置
|
|
|
|
|
|
|
|
// String textAfterCursor = customerMakingProvider
|
|
|
|
// .controller.text
|
|
|
|
// .substring(cursorPos); //把字符串从光标的位置截取,光标后面的
|
|
|
|
|
|
|
|
// String textBeforeCursor = customerMakingProvider
|
|
|
|
// .controller.text
|
|
|
|
// .substring(0, cursorPos); //光标前面的字符串
|
|
|
|
// customerMakingProvider.controller.text =
|
|
|
|
// textBeforeCursor +
|
|
|
|
// "http://www.baidu.com" +
|
|
|
|
// textAfterCursor; //把想要的插入的内容拼接在光标位置处
|
|
|
|
|
|
|
|
// customerMakingProvider.controller.selection =
|
|
|
|
// TextSelection.collapsed(
|
|
|
|
// offset: customerMakingProvider
|
|
|
|
// .controller.text.length);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
selecteds: customerMakingProvider
|
...
|
...
|
|