A simple example to understand K-Means algorithm.
(You can download Iris data set here.)
Thank you for reading. Follow for more.
A simple example to understand K-Means algorithm.
(You can download Iris data set here.)
Thank you for reading. Follow for more.
A simple example to understand KNN algorithm.
(You can download Iris data set here.)
Thank you for reading. Follow for more.
All you have to do is follow these steps:
Step 1: Go to your project directory in VS Code.
Step 2: Open terminal.
Step 3: Run “cd android”.
Step 4: Run “.\gradlew signingReport”.
And then tadaa! It will display like that:
> Task :app:authReport
Variant: debug
Config: debug
Store: C:\Users\User\.android\debug.keystore
Alias: AndroidDebugKey
MD5: 6B:64:......
SHA1: 52:B0... //SHA1 ***
SHA-256: 80:BF:B3:A8:....
Valid until: Monday, 10 May, 2050
Thank you for reading. Follow for more.
You can try to set AppBar Border like this :
appBar: AppBar(
shape: Border(bottom: BorderSide(color: Colors.red)),
....
Thank you for reading. Follow for more.
You can use TabBar indicator like this:
TabBar(
controller: _tabController,
indicatorColor: Colors.grey,
labelColor: Colors.black,
unselectedLabelColor: Colors.grey,
tabs: [
...
],
)
Thank you for reading. Follow for more.
You can make Instagram change account UI with this. You can delete the margins in this row margin: EdgeInsets.only(bottom: 50, left: 12, right:12).
Then it will be exactly the same UI with Instagram account changer Dialog.
Here is the source code :
floatingActionButton: FloatingActionButton(
onPressed: () {
showGeneralDialog(
barrierLabel: "Label",
barrierDismissible: true,
barrierColor: Colors.black.withOpacity(0.5),
transitionDuration: Duration(milliseconds: 700),
context: context,
pageBuilder: (context, anim1, anim2) {
return Align(
alignment: Alignment.bottomCenter,
child: Container(
height: 300,
child: SizedBox.expand(child: FlutterLogo()),
margin: EdgeInsets.only(bottom: 50, left: 12, right:12),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(40),
),
),
);
},
transitionBuilder: (context, anim1, anim2, child) {
return SlideTransition(
position: Tween(begin: Offset(0, 1),
end: Offset(0,0)).animate(anim1),
child: child,
);
},
);
},
)
Thank you for reading. Follow for more.
To perform network operations in your application, your manifest must include the following permissions:
<manifest xlmns:android...>
...
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <application ...
</manifest>
Permission name is case sensitive. So wrong case means your application won’t get permission.
Here is the other permission you might want to use for your app.
<manifest xlmns:android...>
... <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="com.example.towntour.permission.MAPS_RECEIVE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /> <application ...
</manifest>
Thank you for reading. Follow for more.
You can solve this problem by setting resizeToAvoidBottomInset: false
in Scaffold()
.
( resizeToAvoidBottomPadding
is deprecated. )
Use resizeToAvoidBottomInset
:
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
resizeToAvoidBottomInset : false,
appBar: AppBar(
title: Text('First App'),
),
...
);
}
}
Thank you for reading. Follow for more.