提交 a3b10122 编写于 作者: bluesofy's avatar bluesofy 🎏

🎏 UI微调

上级 3b6d02f3
## 1.0.2 - 2020/05/13
* Slightly Adjust the UI
## 1.0.1 - 2020/05/10
* Format Dart
......
......@@ -9,7 +9,7 @@ A Toast Widget for Flutter.
### Add Dependency
```yaml
dependencies:
bytoast: ^1.0.1
bytoast: ^1.0.2
```
### Usage
......
......@@ -56,7 +56,7 @@ class _MyHomePageState extends BasePageState<MyHomePage> {
case 2:
ByToast.withIcon(
context,
'Succeed Tips',
'Success',
Image.asset('images/ic_tips_ok.webp', alignment: Alignment.center),
isOnTop: true,
);
......
......@@ -18,10 +18,10 @@ packages:
bytoast:
dependency: "direct main"
description:
name: bytoast
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.0.1"
path: ".."
relative: true
source: path
version: "1.0.2"
charcode:
dependency: transitive
description:
......
......@@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+100
version: 1.0.2+102
environment:
sdk: ">=2.7.0 <3.0.0"
......@@ -30,9 +30,9 @@ dependencies:
cupertino_icons: ^0.1.3
# ByToast
bytoast: ^1.0.1
# bytoast:
# path: ../
# bytoast: ^1.0.2
bytoast:
path: ../
dev_dependencies:
flutter_test:
......
......@@ -5,25 +5,8 @@
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:bytoaste_example/main.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(MyApp());
// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
expect(find.text('1'), findsNothing);
// Tap the '+' icon and trigger a frame.
await tester.tap(find.byIcon(Icons.add));
await tester.pump();
// Verify that our counter has incremented.
expect(find.text('0'), findsNothing);
expect(find.text('1'), findsOneWidget);
});
testWidgets('Show Toast', (WidgetTester tester) async {});
}
......@@ -7,9 +7,9 @@ class ToastStyle {
static const Alignment bottom = Alignment(0.0, 0.5);
static const EdgeInsetsGeometry textPadding =
EdgeInsets.only(left: 32, right: 32, top: 8, bottom: 8);
EdgeInsets.only(left: 32, right: 32, top: 10, bottom: 10);
static const EdgeInsetsGeometry textWithIconPadding =
EdgeInsets.only(left: 16, right: 16, top: 12, bottom: 12);
EdgeInsets.only(left: 20, right: 20, top: 14, bottom: 14);
// Duration
static const Duration shortDuration = Duration(milliseconds: 2400);
......
name: bytoast
description: A Toast Widget for Flutter. Pure Dart Code. Both Android and iOS. Can Show Simple Text Toast or with Image or Customize.
version: 1.0.1
version: 1.0.2
homepage: https://github.com/PandoraMaze/ByToast
environment:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册