-
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
5 changed files
with
74 additions
and
50 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,3 +1,4 @@ | ||
## 0.2.0 | ||
|
||
* TODO: Describe initial release. | ||
## 0.2.0 | ||
- add dialog | ||
- add sheet |
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
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 |
---|---|---|
@@ -1,11 +1,27 @@ | ||
import 'package:flutter_test/flutter_test.dart'; | ||
|
||
import 'package:mini_dialog/mini_dialog.dart'; | ||
|
||
void main() { | ||
test('adds one to input values', () { | ||
// expect(calculator.addOne(2), 3); | ||
// expect(calculator.addOne(-7), -6); | ||
// expect(calculator.addOne(0), 1); | ||
test('String', () { | ||
String a = "你好asb1231好"; | ||
String s = '好'; | ||
String _a = a.toLowerCase(); | ||
// List<int> al = _a.codeUnits; | ||
String _s = s.toLowerCase(); | ||
// List<int> sl = _s.codeUnits; | ||
print(_a); | ||
print(_s); | ||
int alength = _a.length; | ||
int slength = _s.length; | ||
int start = 0; | ||
for (int i = 0; i < alength; i++) { | ||
if (_a.codeUnitAt(i) == _s.codeUnitAt(0) && | ||
i + slength <= alength && | ||
_a.substring(i, slength + i) == _s) { | ||
print("c=${[start, i - 1]}"); | ||
print("i=${[i, i + slength]}"); | ||
i = i + slength; | ||
start = i; | ||
} | ||
} | ||
}); | ||
} |