Skip to content

Commit a84e61d

Browse files
committed
format project
1 parent deb7f62 commit a84e61d

File tree

7 files changed

+32
-34
lines changed

7 files changed

+32
-34
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [3.1.0+1]
2+
* Format project with `flutter format .`
3+
14
## [3.1.0]
25
* Bug fix;
36
* New API to set shadow color

deploy

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,25 +104,20 @@ info "Step 3 Evaluate with panahtml(Skipped)"
104104
info "Step 4 Run publish --dry-run"
105105
flutter pub publish --dry-run
106106
confirm
107-
107+
info "Format project"
108+
flutter format .
108109
info "read pub.dev mirror site"
109110
hostUrl=$PUB_HOSTED_URL
110-
storageUrl=$FLUTTER_STORAGE_BASE_URL
111111
warning "PUB_HOSTED_URL=$PUB_HOSTED_URL"
112-
warning "FLUTTER_STORAGE_BASE_URL=$FLUTTER_STORAGE_BASE_URL"
113112

114113
info "remove environment variables"
115-
export PUB_HOSTED_URL=""
116-
export FLUTTER_STORAGE_BASE_URL=""
114+
export PUB_HOSTED_URL="https://pub.dev"
117115
warning "PUB_HOSTED_URL=$PUB_HOSTED_URL"
118-
warning "FLUTTER_STORAGE_BASE_URL=$FLUTTER_STORAGE_BASE_URL"
119116

120117
info "Step 5 Publish to pub.dev"
121118
flutter pub publish
122119

123120
info "reset environment variables"
124121
export PUB_HOSTED_URL=$hostUrl
125-
export FLUTTER_STORAGE_BASE_URL=$storageUrl
126122

127-
warning "PUB_HOSTED_URL=$PUB_HOSTED_URL"
128-
warning "FLUTTER_STORAGE_BASE_URL=$FLUTTER_STORAGE_BASE_URL"
123+
warning "PUB_HOSTED_URL=$PUB_HOSTED_URL"

example/lib/custom_appbar_sample.dart

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,13 @@ class _State extends State<CustomAppBarDemo>
6666
body: TabBarView(
6767
physics: NeverScrollableScrollPhysics(),
6868
children: items
69-
.map((i) =>
70-
i.title == 'Discovery'
71-
? paletteBody()
72-
: Center(
73-
child: Text(
74-
'<\t\t${i.title}\t\t>',
75-
style: TextStyle(fontSize: 30),
76-
)))
69+
.map((i) => i.title == 'Discovery'
70+
? paletteBody()
71+
: Center(
72+
child: Text(
73+
'<\t\t${i.title}\t\t>',
74+
style: TextStyle(fontSize: 30),
75+
)))
7776
.toList(growable: false),
7877
),
7978
bottomNavigationBar: StyleProvider(
@@ -89,12 +88,12 @@ class _State extends State<CustomAppBarDemo>
8988
TabItem(title: '2019', icon: Icons.link),
9089
TabItem(
9190
icon: Container(
92-
decoration: BoxDecoration(
93-
shape: BoxShape.circle,
94-
color: Color(0xFFFF5722),
95-
),
96-
child: Icon(Icons.add, color: Colors.white, size: 40),
97-
)),
91+
decoration: BoxDecoration(
92+
shape: BoxShape.circle,
93+
color: Color(0xFFFF5722),
94+
),
95+
child: Icon(Icons.add, color: Colors.white, size: 40),
96+
)),
9897
TabItem(title: "2020", icon: Icons.work),
9998
],
10099
backgroundColor: _tabBackgroundColor,
@@ -141,11 +140,10 @@ class _State extends State<CustomAppBarDemo>
141140
mainAxisSpacing: 1,
142141
crossAxisSpacing: 1,
143142
children: paletteColors
144-
.map((c) =>
145-
GestureDetector(
146-
child: ColorItemView(c),
147-
onTap: () => _onColorChanged(c),
148-
))
143+
.map((c) => GestureDetector(
144+
child: ColorItemView(c),
145+
onTap: () => _onColorChanged(c),
146+
))
149147
.toList(),
150148
);
151149
}

example/lib/model/choice_value.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616

1717
// copy of _ChoiceValue from flutter gallery
1818
class ChoiceValue<T> {
19-
const ChoiceValue({required this.value,required this.title, required this.label});
19+
const ChoiceValue(
20+
{required this.value, required this.title, required this.label});
2021

2122
final T value;
2223
final String title;

lib/src/chip_builder.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ class DefaultChipBuilder extends ChipBuilder {
109109
margin: margin,
110110
padding: padding,
111111
child: Container(
112-
decoration:
113-
BoxDecoration(shape: BoxShape.circle, color: chip),
112+
decoration: BoxDecoration(shape: BoxShape.circle, color: chip),
114113
width: 10,
115114
height: 10,
116115
),

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: convex_bottom_bar
22
description: A Flutter package which implements a ConvexAppBar to show a convex tab in the bottom bar. Theming supported.
3-
version: 3.1.0
3+
version: 3.1.0+1
44
homepage: https://github.com/hacktons/convex_bottom_bar
55

66
environment:

test/widget_test.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,10 @@ void main() {
147147
);
148148
await tester.tap(find.byIcon(Icons.near_me).first, warnIfMissed: false);
149149
await tester.pumpAndSettle(Duration(milliseconds: 300));
150-
await tester.drag(find.byType(ConvexAppBar), Offset(200, 0), warnIfMissed: false);
151-
await tester.drag(find.byType(ConvexAppBar), Offset(-200, 0), warnIfMissed: false);
150+
await tester.drag(find.byType(ConvexAppBar), Offset(200, 0),
151+
warnIfMissed: false);
152+
await tester.drag(find.byType(ConvexAppBar), Offset(-200, 0),
153+
warnIfMissed: false);
152154
await tester.pumpAndSettle(Duration(milliseconds: 300));
153155
await tester.startGesture(Offset(0, 100)).then((g) {
154156
return g.moveTo(Offset(500, 100));

0 commit comments

Comments
 (0)