Skip to content

Commit

Permalink
v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mirmoktadir committed Jan 13, 2023
1 parent 3927368 commit 17e339f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/app/modules/home/controllers/home_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import '../../../service/dio_client.dart';
import '../model/posts.dart';

class HomeController extends GetxController with BaseController {
///POST LIST
///GET POST LIST
final postList = RxList<Posts>();

getPostList() async {
Expand Down
15 changes: 9 additions & 6 deletions lib/app/modules/home/views/home_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,20 @@ class HomeView extends GetView<HomeController> {
? const EmptyWidget()
: Padding(
padding: const EdgeInsets.all(18.0),
child: SingleChildScrollView(
padding: EdgeInsets.zero,
physics: const BouncingScrollPhysics(),
child: RawScrollbar(
thumbColor: theme.primaryColor,
radius: const Radius.circular(100),
thickness: 5,
interactive: true,
child: ListView.separated(
itemCount: controller.postList.length,
shrinkWrap: true,
physics: const BouncingScrollPhysics(),
padding: EdgeInsets.zero,
separatorBuilder: (_, __) => SizedBox(
height: 15.h,
height: 20.h,
),
itemBuilder: (ctx, index) => Container(
height: 100.h,
padding: const EdgeInsets.all(5),
width: double.infinity,
color: theme.canvasColor,
child: Center(
Expand Down
4 changes: 2 additions & 2 deletions lib/app/service/dio_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class DioClient {
}
}

//MULTIPART
//MULTIPART FOR MULTIPLE FILE UPLOAD

List<File>? docFileList = [];
Future<dynamic> multipartRequest(
Expand All @@ -94,7 +94,7 @@ class DioClient {
}
}

///
//MULTIPART FOR SINGLE FILE UPLOAD

Future<dynamic> multipartSingleFile(String url, Map<String, dynamic> header,
Map<String, dynamic> payload, String? filepath, String key) async {
Expand Down
2 changes: 2 additions & 0 deletions lib/utils/fcm_helper.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore_for_file: unused_local_variable

import 'package:awesome_notifications/awesome_notifications.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_messaging/firebase_messaging.dart';
Expand Down

0 comments on commit 17e339f

Please sign in to comment.