Posts

Showing posts from May, 2023

some tools to start online bussnes

  Sure, here are a few tools that can help you get started: 1. Website builders: Platforms like Shopify, Squarespace, and Wix make it easy to create a professional-looking website for your business. 2. Social media management tools: Tools like Hootsuite and Buffer can help you manage your social media accounts and schedule posts in advance. 3. Email marketing tools: Platforms like Mailchimp and Constant Contact make it easy to create and send professional-looking emails to your customers. 4. Payment processors: Services like PayPal and Stripe allow you to accept payments from customers online. 5. Analytics tools: Google Analytics and other analytics tools can help you track your website traffic and customer behavior.

creating bottom navigation bar in flutter

  import 'package:flutter/material.dart' ; import 'package:techrype/account.dart' ; import 'package:techrype/jiocinema.dart' ; import 'package:techrype/search_box.dart' ; import 'camera.dart' ; class NavigationBaar extends StatefulWidget { const NavigationBaar ( { Key ? key } ) : super ( key : key ); @override State < NavigationBaar > createState () => _NavigationBaarState (); } int _currentIndex = 0 ; final _tabs = [ JioCinema (), const SearchBox (), const Camera (), const loginPage (), ] ; class _NavigationBaarState extends State < NavigationBaar > { @override Widget build ( BuildContext context ) { return Scaffold ( body : _tabs [ _currentIndex ] , bottomNavigationBar : BottomNavigationBar ( type : BottomNavigationBarType . fixed , //backgroundColor: Colors.white, selectedFontSize : 16 , unselectedFontSize : 14 , iconSize : 29 , currentIndex...

creating a backround image in flutter

  import 'package:flutter/material.dart' ; class Camera extends StatelessWidget { const Camera ( { Key ? key } ) : super ( key : key ); @override Widget build ( BuildContext context ) { return Scaffold ( body : Container ( height : double . infinity , width : double . infinity , decoration : const BoxDecoration ( image : DecorationImage ( image : AssetImage ( 'assets/images/bg.png' ), fit : BoxFit . cover ), ), child : const Center ( child : Text ( 'Camera Coming Soon!!' , style : TextStyle ( fontSize : 30 , color : Colors . white ),),), ), ); } }

Creating a list using listView.builder

ListView . builder ( itemCount : 10 , itemBuilder : ( BuildContext context , int index ) { return Padding ( padding : const EdgeInsets . all ( 8.0 ), child : Container ( width : 300 , height : 200 , decoration : BoxDecoration ( borderRadius : BorderRadius . circular ( 5 ), color : Colors . red , ), child : const Center ( child : Icon ( Icons . heart_broken_rounded , color : Colors . white , size : 150 ,)), ), ); } ),

Making things visible and invisible in flutter

  body : Center ( child : Column ( mainAxisAlignment : MainAxisAlignment . center , mainAxisSize : MainAxisSize . min , children : [ Visibility ( visible : isVisible , maintainAnimation : true , maintainSize : true , maintainState : true , child : Container ( height : 200 , width : 200 , color : Colors . red , ), ), ElevatedButton ( onPressed : () { setState (() { isVisible =! isVisible ; } ); } , child : const Icon ( Icons . slideshow )) ] , ), )

Making widgets visible and invisible on pressed in flutter

  import 'package:flutter/material.dart' ; import 'package:techrype/current_screen.dart' ; void main () { runApp ( const MaterialApp ( debugShowCheckedModeBanner : false , home : MyHomePage (), )); } class MyHomePage extends StatefulWidget { const MyHomePage ( { Key ? key } ) : super ( key : key ); @override State < MyHomePage > createState () => _MyHomePageState (); } class _MyHomePageState extends State < MyHomePage > { bool isVisible = true ; @override Widget build ( BuildContext context ) { return Scaffold ( body : Center ( child : Column ( mainAxisAlignment : MainAxisAlignment . center , mainAxisSize : MainAxisSize . min , children : [ Visibility ( visible : isVisible , maintainAnimation : true , maintainSize : true , maintainState : true , child : Container ( height : 200 , ...

itns me

Image
`