-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
296 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
|
||
- 占位. | ||
- 待做事项: | ||
1. UUID工具 | ||
2. markdown编写/解析工具 | ||
3. quill编辑器 | ||
4. 二维码生成/解析工具(qr_flutter),如果可以的话,调用摄像头扫描二维码 | ||
5. 条形码生成/解析工具 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import 'package:refreshed/refreshed.dart'; | ||
|
||
class GlobalVariable { | ||
static RxString searchRx = RxString(""); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,33 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:refreshed/refreshed.dart'; | ||
import 'package:tools/utils/uuid/uuid_analysis.dart'; | ||
// import 'package:flutter/material.dart'; | ||
// import 'package:refreshed/refreshed.dart'; | ||
// import 'package:tools/utils/uuid/uuid_analysis.dart'; | ||
|
||
class UuidToolsController extends GetxController { | ||
final TextEditingController textEditingController = TextEditingController(); | ||
// class UuidToolsController extends GetxController { | ||
// final TextEditingController textEditingController = TextEditingController(); | ||
|
||
final RxString helper = "".obs; | ||
// final RxString helper = RxString(""); | ||
|
||
final Rx<Color> borderColor = Rx<Color>(Colors.grey); | ||
// final Rx<Color> borderColor = Rx<Color>(Colors.grey); | ||
|
||
void onEditingComplete() { | ||
try { | ||
final UuidAnalysis analysis = UuidAnalysis(textEditingController.text); | ||
} catch (e) { | ||
if (e is FormatException) { | ||
borderColor.value = Colors.red; | ||
// textEditingController. | ||
helper.value = "UUID格式错误"; | ||
update(); | ||
} | ||
print(e); | ||
} | ||
} | ||
} | ||
// final Rxn<UuidAnalysis> analysis = Rxn<UuidAnalysis>(); | ||
|
||
// void onEditingComplete() { | ||
// if (textEditingController.text.isEmpty) { | ||
// borderColor.value = Colors.red; | ||
// helper.value = "UUID不能为空"; | ||
// return; | ||
// } | ||
// analysis.value = null; | ||
// try { | ||
// analysis.value = UuidAnalysis(textEditingController.text); | ||
// } catch (e) { | ||
// if (e is FormatException) { | ||
// borderColor.value = Colors.red; | ||
// // textEditingController. | ||
// helper.value = "UUID格式错误"; | ||
// update(); | ||
// } | ||
// print(e); | ||
// } | ||
// } | ||
// } |
Oops, something went wrong.