asset tagging cont
parent
99398a6075
commit
5658059543
@ -0,0 +1,75 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:test_sa/modules/asset_tracking/asset_tracking_provider.dart';
|
||||
import 'package:test_sa/new_views/common_widgets/default_app_bar.dart';
|
||||
import 'package:test_sa/views/widgets/loaders/app_loading.dart';
|
||||
|
||||
class AssetTagListView extends StatelessWidget {
|
||||
AssetTagListView({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: const DefaultAppBar(title: "Available Tags"),
|
||||
body: SizedBox());
|
||||
|
||||
|
||||
// FutureBuilder<List>(
|
||||
// future: Provider.of<AssetTrackingProvider>(context, listen: false).getPenguinAssetTags(),
|
||||
// builder: (BuildContext context, AsyncSnapshot<List> snapshot) {
|
||||
// if (snapshot.connectionState == ConnectionState.waiting) {
|
||||
// return const Center(child: ALoading());
|
||||
// } else if (snapshot.hasData) {}
|
||||
//
|
||||
// return SizedBox();
|
||||
//
|
||||
// // return ListView.separated(
|
||||
// // key: const ValueKey('list_view'),
|
||||
// // padding: const EdgeInsets.all(16),
|
||||
// // itemCount: _searchableList.length,
|
||||
// // separatorBuilder: (listContext, itemIndex) => 12.height,
|
||||
// // itemBuilder: (listContext, itemIndex) {
|
||||
// // // Calculate staggered animation delay
|
||||
// // final delay = itemIndex * 0.08;
|
||||
// // final animation = Tween<double>(begin: 0.0, end: 1.0).animate(
|
||||
// // CurvedAnimation(
|
||||
// // parent: _animationController,
|
||||
// // curve: Interval(
|
||||
// // delay.clamp(0.0, 0.7),
|
||||
// // (delay + 0.4).clamp(0.0, 1.0),
|
||||
// // curve: Curves.easeOut,
|
||||
// // ),
|
||||
// // ),
|
||||
// // );
|
||||
// //
|
||||
// // final slideAnimation = Tween<Offset>(
|
||||
// // begin: const Offset(0.0, 0.15),
|
||||
// // end: Offset.zero,
|
||||
// // ).animate(
|
||||
// // CurvedAnimation(
|
||||
// // parent: _animationController,
|
||||
// // curve: Interval(
|
||||
// // delay.clamp(0.0, 0.7),
|
||||
// // (delay + 0.4).clamp(0.0, 1.0),
|
||||
// // curve: Curves.easeOutCubic,
|
||||
// // ),
|
||||
// // ),
|
||||
// // );
|
||||
// //
|
||||
// // return FadeTransition(
|
||||
// // opacity: animation,
|
||||
// // child: SlideTransition(
|
||||
// // position: slideAnimation,
|
||||
// // child: AssetItemListView(
|
||||
// // device: _searchableList[itemIndex],
|
||||
// // onPressed: (device) {
|
||||
// // widget.fromBottomBar ? Navigator.of(context).pushNamed(AssetDetailPage.id, arguments: device.id) : Navigator.of(context).pop(device);
|
||||
// // },
|
||||
// // ),
|
||||
// // ),
|
||||
// // );
|
||||
// // },
|
||||
// // );
|
||||
// }));
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue