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.
31 lines
824 B
31 lines
824 B
import 'package:flutter/material.dart'; |
|
import 'package:flutter_example_packages/base/di/app_di.dart'; |
|
import 'package:flutter_example_packages/pages/wakelock/model.dart'; |
|
import 'package:scoped_model/scoped_model.dart'; |
|
|
|
class WakelockPage extends StatefulWidget { |
|
const WakelockPage({ |
|
super.key, |
|
}); |
|
|
|
@override |
|
State<WakelockPage> createState() => _WakelockPageState(); |
|
} |
|
|
|
class _WakelockPageState extends State<WakelockPage> { |
|
@override |
|
Widget build(BuildContext context) { |
|
return ScopedModel<WakelockModel>( |
|
model: getIt<WakelockModel>(), |
|
child: ScopedModelDescendant<WakelockModel>(builder: (context, child, model) { |
|
return Wrap( |
|
spacing: 20, |
|
runSpacing: 20, |
|
children: const [ |
|
Text("data"), |
|
], |
|
); |
|
}), |
|
); |
|
} |
|
} |