first commit
This commit is contained in:
54
lib/components/emptylist_widget.dart
Normal file
54
lib/components/emptylist_widget.dart
Normal file
@@ -0,0 +1,54 @@
|
||||
import '/flutterlib/flutter_theme.dart';
|
||||
import '/flutterlib/flutter_util.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'emptylist_model.dart';
|
||||
export 'emptylist_model.dart';
|
||||
|
||||
class EmptylistWidget extends StatefulWidget {
|
||||
const EmptylistWidget({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_EmptylistWidgetState createState() => _EmptylistWidgetState();
|
||||
}
|
||||
|
||||
class _EmptylistWidgetState extends State<EmptylistWidget> {
|
||||
late EmptylistModel _model;
|
||||
|
||||
@override
|
||||
void setState(VoidCallback callback) {
|
||||
super.setState(callback);
|
||||
_model.onUpdate();
|
||||
}
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_model = createModel(context, () => EmptylistModel());
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_model.maybeDispose();
|
||||
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
context.watch<FFAppState>();
|
||||
|
||||
return ClipRRect(
|
||||
borderRadius: BorderRadius.circular(8.0),
|
||||
child: SvgPicture.asset(
|
||||
'assets/images/Empty_List_Icon.svg',
|
||||
width: 358.0,
|
||||
height: 277.0,
|
||||
fit: BoxFit.contain,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user