-
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
1 parent
ae7ce51
commit 090c411
Showing
30 changed files
with
230 additions
and
63 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
extension ScreenSizeResponsive on double { | ||
bool get isMobile => this <= 375 ? true : false; | ||
} |
This file was deleted.
Oops, something went wrong.
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
4 changes: 2 additions & 2 deletions
4
...ages/home/components/title_component.dart → ...bile/home/components/title_component.dart
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:ios_icon_finder/services/ios%20_icons/models/ios_icon_model.dart'; | ||
import 'package:ios_icon_finder/src/global/theme/app_color.dart'; | ||
import 'package:ios_icon_finder/src/pages/mobile/home/widgets/icon_card/icon_info.dart'; | ||
import 'package:ios_icon_finder/src/pages/mobile/home/widgets/icon_card/icon_ui.dart'; | ||
|
||
class IconCardWeb extends StatelessWidget { | ||
const IconCardWeb({super.key, required this.icon}); | ||
|
||
final IosIcon icon; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Container( | ||
width: 100, | ||
height: 100, | ||
padding: EdgeInsets.all(20), | ||
decoration: BoxDecoration( | ||
color: Colors.white, | ||
border: Border.all(color: bombay), | ||
borderRadius: BorderRadius.circular(8)), | ||
child: Column( | ||
children: [ | ||
IconUI(icon: icon), | ||
SizedBox(height: 8), | ||
IconInfo(icon: icon), | ||
], | ||
), | ||
); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import 'package:flutter/cupertino.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:hooks_riverpod/hooks_riverpod.dart'; | ||
import 'package:ios_icon_finder/services/ios%20_icons/models/ios_icon_model.dart'; | ||
import 'package:ios_icon_finder/services/ios%20_icons/services/ios_icon_service.dart'; | ||
import 'package:ios_icon_finder/src/global/extensions/responsive_extension.dart'; | ||
import 'package:ios_icon_finder/src/global/theme/app_color.dart'; | ||
import 'package:ios_icon_finder/src/pages/mobile/home/widgets/icon_card/icon_card.dart'; | ||
import 'package:liquid_pull_to_refresh/liquid_pull_to_refresh.dart'; | ||
|
||
class IconList extends ConsumerWidget { | ||
const IconList({super.key, required this.icons}); | ||
|
||
final List<IosIcon> icons; | ||
@override | ||
Widget build(BuildContext context, WidgetRef ref) { | ||
final size = MediaQuery.of(context).size; | ||
final isMobile = size.width.isMobile; | ||
int columnsCount = (size.width / 200).floor(); | ||
double aspectRatio = size.width / (columnsCount * 100); | ||
|
||
return DecoratedBox( | ||
decoration: BoxDecoration(borderRadius: BorderRadius.circular(100)), | ||
child: LiquidPullToRefresh( | ||
height: 60, | ||
color: coconut, | ||
animSpeedFactor: 2, | ||
backgroundColor: mineShaft, | ||
showChildOpacityTransition: false, | ||
springAnimationDurationInMilliseconds: 800, | ||
onRefresh: () => ref.refresh(iosIconServiceProvider.future), | ||
child: isMobile | ||
? ListView.separated( | ||
separatorBuilder: (_, __) => SizedBox(height: 8), | ||
shrinkWrap: true, | ||
itemCount: icons.length, | ||
padding: EdgeInsets.symmetric(vertical: 10), | ||
itemBuilder: (context, index) { | ||
IosIcon icon = icons[index]; | ||
return IconCard(icon: icon); | ||
}, | ||
) | ||
: GridView.builder( | ||
itemCount: icons.length, | ||
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( | ||
crossAxisCount: columnsCount, | ||
childAspectRatio: aspectRatio, | ||
crossAxisSpacing: 8.0, | ||
mainAxisSpacing: 8.0, | ||
), | ||
itemBuilder: (context, index) { | ||
IosIcon icon = icons[index]; | ||
return IconCard( | ||
icon: icon, | ||
rightToActions: true, | ||
); | ||
}, | ||
), | ||
), | ||
); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<!-- | ||
If you are serving your web app in a path other than the root, change the | ||
href value below to reflect the base path you are serving from. | ||
The path provided below has to start and end with a slash "/" in order for | ||
it to work correctly. | ||
For more details: | ||
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base | ||
This is a placeholder for base href that will be replaced by the value of | ||
the `--base-href` argument provided to `flutter build`. | ||
--> | ||
<base href="$FLUTTER_BASE_HREF"> | ||
|
||
<meta charset="UTF-8"> | ||
<meta content="IE=Edge" http-equiv="X-UA-Compatible"> | ||
<meta name="description" content="A new Flutter project."> | ||
|
||
<!-- iOS meta tags & icons --> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black"> | ||
<meta name="apple-mobile-web-app-title" content="ios_icon_finder"> | ||
<link rel="apple-touch-icon" href="icons/Icon-192.png"> | ||
|
||
<!-- Favicon --> | ||
<link rel="icon" type="image/png" href="favicon.png"/> | ||
|
||
<title>ios_icon_finder</title> | ||
<link rel="manifest" href="manifest.json"> | ||
|
||
<script> | ||
// The value below is injected by flutter build, do not touch. | ||
const serviceWorkerVersion = null; | ||
</script> | ||
<!-- This script adds the flutter initialization JS code --> | ||
<script src="flutter.js" defer></script> | ||
</head> | ||
<body> | ||
<script> | ||
window.addEventListener('load', function(ev) { | ||
// Download main.dart.js | ||
_flutter.loader.loadEntrypoint({ | ||
serviceWorker: { | ||
serviceWorkerVersion: serviceWorkerVersion, | ||
}, | ||
onEntrypointLoaded: function(engineInitializer) { | ||
engineInitializer.initializeEngine().then(function(appRunner) { | ||
appRunner.runApp(); | ||
}); | ||
} | ||
}); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.