deck_scrollview 0.1.0
deck_scrollview #
A scrollview like recent task view of system in Android
Getting Started #
example #
import 'package:flutter/material.dart';
import 'package:deck_scrollview/deck_scroll_view.dart';
void main() => runApp(MyApp());
const List<String> IMAGES = [
"https://img.xjh.me/desktop/bg/acg/62519151_p0.jpg",
"https://img.xjh.me/desktop/bg/acg/63788867_p0.jpg",
"https://img.xjh.me/desktop/bg/acg/60752300_p0.jpg",
"https://img.xjh.me/desktop/bg/acg/57970506_p0.jpg",
"https://img.xjh.me/desktop/bg/nature/64639895_p0.jpg",
"https://img.xjh.me/desktop/bg/nature/57817236_p0.jpg",
"https://img.xjh.me/desktop/bg/nature/63958512_p0.jpg",
"https://img.xjh.me/desktop/bg/nature/61516978_p0.jpg",
"https://img.xjh.me/desktop/bg/nature/63597353_p0.jpg",
];
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
List<String> imageList = List.generate(20, (int index) => IMAGES[index % IMAGES.length]);
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: DeckScrollView.useDelegate(
layoutPow: 5.0,
itemExtent: 250,
childDelegate: DeckChildBuilderDelegate(
builder: (context, index) => Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
width: double.infinity,
decoration: BoxDecoration(
color: Colors.white,
boxShadow: [BoxShadow(blurRadius: 3, color: Color(0x44000000))],
borderRadius: BorderRadius.all(Radius.circular(5)),
),
child: ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(5)),
child: Image.network(
imageList[index],
fit: BoxFit.cover,
),
),
),
),
childCount: imageList.length),
),
),
);
}
}
0.1.0 #
- Modify description in pubspec.yaml
- Format lib/deck_scroll_view.dart and lib/deck_viewport.dart
0.0.1 #
- First Release.
deck_scrollview_example #
Demonstrates how to use the deck_scrollview plugin.
Getting Started #
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies:
deck_scrollview: ^0.1.0
2. Install it
You can install packages from the command line:
with Flutter:
$ flutter pub get
Alternatively, your editor might support flutter pub get
.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
import 'package:deck_scrollview/deck_scroll_view.dart';
import 'package:deck_scrollview/deck_viewport.dart';
Popularity:
Describes how popular the package is relative to other packages.
[more]
|
18
|
Health:
Code health derived from static analysis.
[more]
|
100
|
Maintenance:
Reflects how tidy and up-to-date the package is.
[more]
|
96
|
Overall:
Weighted score of the above.
[more]
|
58
|
We analyzed this package on Dec 9, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.6.1
- pana: 0.12.21
- Flutter: 1.9.1+hotfix.6
Maintenance suggestions
The package description is too short. (-4 points)
Add more detail to the description
field of pubspec.yaml
. Use 60 to 180 characters to describe the package, what it does, and its target use case.
Dependencies
Package | Constraint | Resolved | Available |
---|---|---|---|
Direct dependencies | |||
Dart SDK | >=2.1.0 <3.0.0 | ||
flutter | 0.0.0 | ||
vector_math | ^2.0.8 | 2.0.8 | |
Transitive dependencies | |||
collection | 1.14.11 | 1.14.12 | |
meta | 1.1.7 | 1.1.8 | |
sky_engine | 0.0.99 | ||
typed_data | 1.1.6 | ||
Dev dependencies | |||
flutter_test |