Masterarbeit Richard Stern. Flutter App, sich mit einem Bluetooth-Gerät verbindet und Berührungen auf einem Sensor visualisiert.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BlocProvider.dart 449B

1234567891011121314
  1. import 'package:flutter/material.dart';
  2. import 'package:touch_demonstrator/src/blocs/appBloc.dart';
  3. class BlocProvider extends InheritedWidget {
  4. final AppBloc bloc;
  5. BlocProvider({Key key, this.bloc, child}) : super(key: key, child: child);
  6. @override
  7. bool updateShouldNotify(InheritedWidget oldWidget) => true;
  8. static AppBloc of(BuildContext context) =>
  9. (context.inheritFromWidgetOfExactType(BlocProvider) as BlocProvider).bloc;
  10. }