File tree Expand file tree Collapse file tree 8 files changed +40
-14
lines changed Expand file tree Collapse file tree 8 files changed +40
-14
lines changed Original file line number Diff line number Diff line change 1
1
import 'package:flutter/material.dart' ;
2
+ import 'package:flutter_animate/flutter_animate.dart' ;
2
3
import 'package:help_me_design/appwrite_service/auth_service.dart' ;
3
4
import 'package:help_me_design/providers/component_tab_provider/component_tab_provider.dart' ;
4
5
import 'package:help_me_design/providers/explore_tab_provider/explore_tab_provider.dart' ;
@@ -12,7 +13,10 @@ import 'providers/inspiration_tab_provider/inspiration_tab_provider.dart';
12
13
import 'providers/snippet_tab_provider.dart' ;
13
14
import 'views/screens/home_screen/home_screen.dart' ;
14
15
16
+ import 'package:url_strategy/url_strategy.dart' ;
17
+
15
18
void main () {
19
+ setPathUrlStrategy ();
16
20
runApp (const MyApp ());
17
21
}
18
22
@@ -26,6 +30,7 @@ class MyApp extends StatefulWidget {
26
30
class _MyAppState extends State <MyApp > {
27
31
@override
28
32
Widget build (BuildContext context) {
33
+ Animate .restartOnHotReload = true ;
29
34
return MultiProvider (
30
35
providers: [
31
36
ChangeNotifierProvider <ThemeManager >(create: (_) => ThemeManager ()),
Original file line number Diff line number Diff line change @@ -182,10 +182,10 @@ class _ComponentViewState extends State<ComponentView> {
182
182
UtilityHelper .toastMessage (message: "Code Updated" );
183
183
}
184
184
},
185
- codeText: activeCollectionData[componentTabProvider.activeComponentViewIndex ].data['code' ],
185
+ codeText: activeCollectionData[i ].data['code' ],
186
186
description: '' ,
187
- title: activeCollectionData[componentTabProvider.activeComponentViewIndex ].data['title' ],
188
- codeLanguage: activeCollectionData[componentTabProvider.activeComponentViewIndex ].data['codeLanguage' ],
187
+ title: activeCollectionData[i ].data['title' ],
188
+ codeLanguage: activeCollectionData[i ].data['codeLanguage' ],
189
189
),
190
190
)
191
191
],
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ class ExploreView extends StatefulWidget {
22
22
}
23
23
24
24
class _ExploreViewState extends State <ExploreView > {
25
+ ScrollController _scrollController = ScrollController ();
25
26
@override
26
27
void initState () {
27
28
// TODO: implement initState
@@ -60,13 +61,6 @@ class _ExploreViewState extends State<ExploreView> {
60
61
: "assets/images/explore-poster.png" ,
61
62
bgPattern: ExploreTabPatternPainter (74 , context),
62
63
),
63
- // IconButton(
64
- // onPressed: () {
65
- // // DatabasesService().getDesignResourcesData();
66
- // exploreTapProvider.initDesignResourcesData();
67
- // },
68
- // icon: const Icon(Icons.abc),
69
- // ),
70
64
AnimatedSwitcher (
71
65
duration: 500. ms,
72
66
child: exploreTapProvider.showListItemView ? ExploreListItemView () : ExploreListView (),
Original file line number Diff line number Diff line change 1
1
import 'package:flutter/material.dart' ;
2
+ import 'package:flutter_animate/flutter_animate.dart' ;
2
3
import 'package:help_me_design/providers/explore_tab_provider/explore_tab_provider.dart' ;
3
4
import 'package:help_me_design/theme/my_design_system.dart' ;
4
5
import 'package:help_me_design/theme/my_theme.dart' ;
@@ -40,7 +41,16 @@ class ExploreListItemView extends StatelessWidget {
40
41
title: activeItemData.resourcesList[i].title,
41
42
description: activeItemData.resourcesList[i].description,
42
43
resourceUrl: activeItemData.resourcesList[i].url,
43
- ),
44
+ )
45
+ .animate ()
46
+ .scaleXY (
47
+ begin: 0.2 ,
48
+ alignment: Alignment .bottomLeft,
49
+ )
50
+ .then ()
51
+ .saturate (begin: 0 , delay: 100. ms, duration: 400. ms)
52
+ .then ()
53
+ .shakeX (delay: 200. ms, hz: 8 , amount: i == 0 ? 4 : 0 )
44
54
],
45
55
),
46
56
);
Original file line number Diff line number Diff line change 1
1
import 'package:flutter/material.dart' ;
2
+ import 'package:flutter_animate/flutter_animate.dart' ;
2
3
import 'package:help_me_design/providers/explore_tab_provider/explore_tab_provider.dart' ;
3
4
import 'package:help_me_design/theme/my_design_system.dart' ;
4
5
import 'package:help_me_design/theme/my_theme.dart' ;
@@ -36,7 +37,14 @@ class ExploreListView extends StatelessWidget {
36
37
: designResourcesCollection.data[i].popularResourceUrl,
37
38
resourcesCount: designResourcesCollection.data[i].resourcesCount.toString (),
38
39
title: designResourcesCollection.data[i].title,
39
- ),
40
+ )
41
+ .animate ()
42
+ .scaleXY (
43
+ begin: 0.2 ,
44
+ alignment: Alignment .bottomLeft,
45
+ )
46
+ .then ()
47
+ .saturate (begin: 0 , delay: 0. ms, duration: 300. ms)
40
48
],
41
49
),
42
50
);
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class InspirationTabPatternPainter extends CustomPainter {
31
31
32
32
@override
33
33
void paint (Canvas canvas, Size size) {
34
- Crosshatch (
34
+ TexturePattern (
35
35
bgColor: Colors .transparent,
36
36
fgColor: MyColors .actionColor,
37
37
featuresCount: featuresCount,
@@ -51,7 +51,7 @@ class ComponentsTabPatternPainter extends CustomPainter {
51
51
52
52
@override
53
53
void paint (Canvas canvas, Size size) {
54
- TexturePattern (
54
+ Crosshatch (
55
55
bgColor: Colors .transparent,
56
56
fgColor: MyColors .actionColor,
57
57
featuresCount: featuresCount,
Original file line number Diff line number Diff line change @@ -637,6 +637,14 @@ packages:
637
637
url: "https://pub.dev"
638
638
source: hosted
639
639
version: "3.0.6"
640
+ url_strategy:
641
+ dependency: "direct main"
642
+ description:
643
+ name: url_strategy
644
+ sha256: "42b68b42a9864c4d710401add17ad06e28f1c1d5500c93b98c431f6b0ea4ab87"
645
+ url: "https://pub.dev"
646
+ source: hosted
647
+ version: "0.2.0"
640
648
vector_math:
641
649
dependency: transitive
642
650
description:
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ dependencies:
54
54
file_picker : ^5.3.1
55
55
56
56
web_scraper : ^0.1.4
57
+ url_strategy : ^0.2.0
57
58
58
59
dev_dependencies :
59
60
flutter_test :
You can’t perform that action at this time.
0 commit comments