Change Image Border Color
Step 1:
Change Image Border Color Short Code
Container( decoration: BoxDecoration( border: Border.all( color: Colors.lightGreen, width: 5, )), child: Image.asset("assets/background.jpg", width: 250, fit: BoxFit.contain, ), ),
import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, home: Scaffold( appBar: AppBar( backgroundColor: Colors.black, title: Text('Set Image Border Color',style: TextStyle(color: Colors.lightGreen),), ), body: Center( child: Column( children: [ Padding( padding: const EdgeInsets.only(top:50.0), child: Container( decoration: BoxDecoration( border: Border.all( color: Colors.lightGreen, width: 5, )), child: Image.asset("assets/background.jpg", width: 250, fit: BoxFit.contain, ), ), ), ], ), ))); } }