This is package its purpose show UI elements according for conditional type and supports Animation and sound null safety.

Features

  • Supported Animation
  • Supported show UI elements according for conditional type
  • Supported Sound null Safety

Getting started

dependencies: animated_conditional_builder: ^0.0.5

Import this package

import 'package:animated_conditional_builder/animated_conditional_builder.dart';

class ExampleOne extends StatelessWidget {  
  const FancyScreen({Key? key}) : super(key: key);  
  
  @override  
  Widget build(BuildContext context) {  
    bool _condition = true;
    return Scaffold(  
      body: Center(  
        child: AnimatedConditionalBuilder(
          condition: _condition , 
          builder: (BuildContext context) => Icon(Icons.add) ,
          fallback: (BuildContext context) => Icon(Icons.minimize)
        ),  
      ),  
    );  
  }  
}

class ExampleTow extends StatelessWidget {  
  const FancyScreen({Key? key}) : super(key: key);  
  
  @override  
  Widget build(BuildContext context) {  
    bool _condition = false;
    return Scaffold(  
      body: Center(  
        child: AnimatedConditionalBuilder(
          condition: _condition , 
          builder: (BuildContext context) => Icon(Icons.add) ,
          fallback: null
         ),  
      ),  
    );  
  }  
}