File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ const kGitUrl = "https://github.com/foss42/apidash";
10
10
const kIssueUrl = "$kGitUrl /issues" ;
11
11
const kDefaultUri = "api.apidash.dev" ;
12
12
13
+ const kAssetIntroMd = "assets/intro.md" ;
14
+ const kAssetSendingLottie = "assets/sending.json" ;
15
+ const kAssetSavingLottie = "assets/saving.json" ;
16
+ const kAssetSavedLottie = "assets/completed.json" ;
17
+
13
18
final kIsMacOS = ! kIsWeb && Platform .isMacOS;
14
19
final kIsWindows = ! kIsWeb && Platform .isWindows;
15
20
final kIsLinux = ! kIsWeb && Platform .isLinux;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class IntroMessage extends StatelessWidget {
16
16
late final String version;
17
17
18
18
Future <void > introData () async {
19
- text = await rootBundle.loadString ('assets/intro.md' );
19
+ text = await rootBundle.loadString (kAssetIntroMd );
20
20
version = (await PackageInfo .fromPlatform ()).version;
21
21
}
22
22
Original file line number Diff line number Diff line change @@ -44,9 +44,7 @@ class SavingOverlay extends StatelessWidget {
44
44
mainAxisSize: MainAxisSize .min,
45
45
children: [
46
46
Lottie .asset (
47
- saveCompleted
48
- ? "assets/completed.json"
49
- : "assets/saving.json" ,
47
+ saveCompleted ? kAssetSavedLottie : kAssetSavingLottie,
50
48
width: 100 ,
51
49
height: 100 ),
52
50
kHSpacer20,
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class SendingWidget extends StatelessWidget {
42
42
child: Column (
43
43
mainAxisAlignment: MainAxisAlignment .center,
44
44
children: [
45
- Lottie .asset ("assets/sending.json" ),
45
+ Lottie .asset (kAssetSendingLottie ),
46
46
],
47
47
),
48
48
);
You can’t perform that action at this time.
0 commit comments