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
{ | |
"TotalData": null, | |
"internalId": "05601", | |
"internalName": "MSO Mojokerto (H1)", | |
"salesmanName": "BASUKI ADI", | |
"saleTypeDescription": "Cash", | |
"productId": "HPM", | |
"nameOr": null, | |
"namePr": null, | |
"productName": "ALL NEW SCOOPY SPORTY MMC JKT SF", |
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
{ | |
"TotalData": null, | |
"internalId": "05601", | |
"internalName": "MSO Mojokerto (H1)", | |
"salesmanName": "BASUKI ADI", | |
"saleTypeDescription": "Cash", | |
"productId": "HZK", | |
"nameOr": null, | |
"namePr": null, | |
"productName": "VARIO 125 CBS ISS JKT SF", |
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
import 'package:flutter/material.dart'; | |
import 'package:lti/bloc/sample_bloc.dart'; | |
import 'package:provider/provider.dart'; | |
class ScreenPost extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MultiProvider( | |
providers: [ChangeNotifierProvider(create: (context) => PostBloc.init())], | |
child: Consumer<PostBloc>( |
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
import 'dart:developer'; | |
import 'package:dio/dio.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:lti/constant.dart'; | |
class PostBloc extends ChangeNotifier { | |
List listData = []; | |
PostBloc.init() { |
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
function addNews(){ | |
$config = array( | |
'upload_path' => "./image_news/", | |
'allowed_types' =>'gif|jpg|jpeg|png' | |
); | |
$this->load->library('upload', $config); | |
if(!$this->upload->do_upload('berkas')){ | |
$res = array( |
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
import 'package:flutter/material.dart'; | |
class HomePage extends StatefulWidget { | |
@override | |
_HomePageState createState() => _HomePageState(); | |
} | |
class _HomePageState extends State<HomePage> { | |
@override | |
Widget build(BuildContext context) { |
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
//Get Notification From Customer | |
void getNotification(String topicFcm) { | |
_firebaseMessaging.subscribeToTopic(topicFcm); | |
_firebaseMessaging.configure( | |
// Run in app | |
onMessage: (Map<String, dynamic> message) async { | |
print("On Message: $message"); | |
customDialog.myAlert(context, 5, 0, () { | |
Navigator.pop(context); | |
Navigator.push( |
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
// Profile Screen | |
class ProfileScreen extends StatefulWidget { | |
final User user; | |
final List<Twt> list; | |
final BuildContext context; | |
final CustomThemeState themeState; | |
const ProfileScreen( | |
{Key key, this.user, this.list, this.context, this.themeState}) | |
: super(key: key); |
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
// Compose Screen | |
class ComposeTwt extends StatefulWidget { | |
final context; | |
final user; | |
const ComposeTwt({Key key, this.context, this.user}) : super(key: key); | |
@override | |
_ComposeTwtState createState() => _ComposeTwtState(); |
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
//Model User | |
class User { | |
String name; | |
String username; | |
String avatar; | |
String banner; | |
String bio; | |
int following; | |
int followers; |