Advertisement
Guest User

Untitled

a guest
May 24th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. class FlavorConfig extends InheritedWidget {
  4. final Widget child;
  5. final FlavorBuild flavorBuild;
  6.  
  7. FlavorConfig({@required this.child, @required this.flavorBuild});
  8.  
  9. static FlavorConfig of(BuildContext context) =>
  10. context.inheritFromWidgetOfExactType(FlavorConfig);
  11.  
  12. @override
  13. bool updateShouldNotify(InheritedWidget oldWidget) => false;
  14. }
  15.  
  16. enum FlavorBuild { Free, Pro }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement