Categories
Mastering Development

How do I make text as big as possible in a container if I don’t know what the text is?

I have a container (width 100%, height 100%, so it fills the screen, if that matters). I have a bit of text, but I don’t know what it is; it could be a single word or a few lines. Is it possible to use pure CSS to set the font-size to something so that the […]

Categories
Mastering Development

Expo react native app image not work properly on testflight ios

I have an app login page centered on screen. When i test on locally with expo on win server and also tested mac on a simulator it works perfectly but when i do build-ios and put it to appstore and test with testflight it is not working properly. This code works on android also. What […]

Categories
Mastering Development

unload assets in flutter

I am beginner to Flutter and try to place an image inside one of my widgets but give me below error: The following assertion was thrown resolving an image codec: Unable to load asset: ../w.png When the exception was thrown, this was the stack #0 PlatformAssetBundle.load package:flutter/…/services/asset_bundle.dart:221 <asynchronous suspension> #1 AssetBundleImageProvider._loadAsync package:flutter/…/painting/image_provider.dart:484 #2 AssetBundleImageProvider.load package:flutter/…/painting/image_provider.dart:469 […]

Categories
Development

Circular BoxDecoration shadow gets cut in a box shape on web, not on mobile

I’m trying to display a circular image with a shadow, but on Flutter web, the shadow gets cut at the edges, while working fine on mobile. Minimum code to reproduce is: import ‘package:flutter/material.dart’; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) […]

Categories
Development

How to implement swipe action to move the colored tile to uncolored tile number puzzle flutter?

Screen of the number puzzle game Here is my code.. I used ontap() function of gesturedetector to move the tile when button is tapped..I want to implement the function of swipe to move the tile to uncolored portion. main.dart Widget tiles(int i) { bool isZero = i == 0; return GestureDetector( onTap: (){ movePosition(i); }, […]

Categories
Development

Having a hard time to navigate from one screen to another in React Native

Every time I try to run the following code I get the error below: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it’s defined in, or you might have mixed up default and named […]

Categories
Development

Accessing the TitleBar close event from a grid button

I am launching a shieldwindow from shield Tree View. The shieldwindow has a single ‘close’ button on the TitleBar as per code below: var dbwindow = $(“#mapworkpanel”).shieldWindow({ width: “60%”, height: “100%”, appendToBody:false, draggable: false, position: { left: 700, top: 0 }, title: “Dictionary Definitions”, titleBarButtons: [ ‘close’ ], events: { close: function(e) { // } […]

Categories
Development

React Native: Scrollview doesn’t work correctly

I make a sign up page of an app with react-native, and because there can be small smartphone, so I want to give keyboardAvoidingView and ScrollView. If it adjusted correctly, it should look like the photo below, But, when I adjusted scrollview,it looked like the photo below, So, I tried various things, but I don’t […]

Categories
Development

How to view and share a pdf from an URL in a react native app?

I have a use-case in my react native app wherein I have to load and display a pdf from an endpoint and also share the same as an attachment(to Gmail app or WhatsApp or even download it) using the native share options (both ios and Android). I’m currently using the react-native-pdf library to load and […]

Categories
Development

Display message(there is no data available) or empty graph for google pie chart if data is zero using asp.net web form

Display message(there is no data available) or empty graph for google pie chart if data is zero using asp.net web form Below is my script <script type=”text/javascript” src=”https://www.gstatic.com/charts/loader.js”></script> <script type=”text/javascript”> google.charts.load(‘current’, { packages: [‘corechart’] }); </script> <script type=”text/javascript”> // Load the Visualization API and the corechart package. google.charts.load(‘current’, { ‘packages’: [‘corechart’] }); // Set a […]