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
void main()=> bqla; |
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
CONTROLLER | |
public function updateStatus() | |
{ | |
$id_berita = $this->input->post('id_berita'); | |
$object = ["status_berita" => "true"]; | |
$updateStatus = $this->berita->updateStatusBerita($object, $id_berita); | |
if ($updateStatus) { | |
echo "berhasil"; | |
} else { |
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
#CONTROLLER | |
*********************************************************************************************************************************** | |
public function updateStatus() | |
{ | |
$data = []; | |
$data['judul'] = "Halaman Berita"; | |
$id_berita = $this->input->post('id_berita'); | |
$objectUpdate = ["status_berita" => "true"]; | |
$objectRemove = ["status_berita" => "false"]; | |
$updateToHeadline = $this->berita->updateToHeadline($objectUpdate, $id_berita); |
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
<script> | |
window.onload = function() { | |
var tampil_kategori = '<?= $tampil_kategori ?>'; | |
var newdataPoints = JSON.parse(tampil_kategori); | |
var jumlahBerita = new CanvasJS.Chart("chartContainer2", { | |
animationEnabled: true, | |
theme: "light2", // "light1", "light2", "dark1", "dark2" | |
title: { | |
text: "Jumlah Berita(per Kategori)" | |
}, |
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:flutter_news/model/Berita_model.dart'; | |
import 'package:flutter_news/widget/Widget_builder.dart'; | |
class WartawanDetail extends StatefulWidget { | |
final int idWartawan; | |
final String gambarWartawan; | |
final String namaWartawan; | |
WartawanDetail({this.idWartawan, this.gambarWartawan, this.namaWartawan}); | |
@override |
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
Widget build(BuildContext context) { | |
ThemeData localTheme = Theme.of(context); | |
return Container( | |
padding: EdgeInsets.all(8), | |
height: MediaQuery.of(context).size.height / 3, | |
child: Card( | |
elevation: 5, | |
child: Row( | |
children: <Widget>[ | |
Expanded( |
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
double screenWidth = MediaQuery.of(context).size.width; | |
double screenHeight = MediaQuery.of(context).size.height; | |
ScreenUtil.instance = ScreenUtil( | |
width: screenWidth, height: screenHeight, allowFontScaling: true) | |
..init(context); | |
double fontSizeInfo = ScreenUtil(allowFontScaling: true).setSp(12); | |
double fontSizeJudul = ScreenUtil(allowFontScaling: true).setSp(20); | |
double fontSizeIcon = ScreenUtil(allowFontScaling: true).setSp(20); |
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
#####It's My configuration | |
double screenWidth = MediaQuery.of(context).size.width; | |
double screenHeight = MediaQuery.of(context).size.height; | |
ScreenUtil.instance = ScreenUtil( | |
width: screenWidth, height: screenHeight, allowFontScaling: true) | |
..init(context); | |
double fontSizeInfo = ScreenUtil(allowFontScaling: true).setSp(12); | |
double fontSizeJudul = ScreenUtil(allowFontScaling: true).setSp(20); | |
double fontSizeIcon = ScreenUtil(allowFontScaling: true).setSp(20); | |
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_news/model/Bookmark_model.dart'; | |
import 'package:sqflite/sqflite.dart'; | |
import 'package:path/path.dart'; | |
import 'package:path_provider/path_provider.dart'; | |
import 'dart:io'; | |
class DBProvider { | |
DBProvider._(); | |
static final DBProvider db = DBProvider._(); | |
static Database _database; |
OlderNewer